Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 466:a6935f46ed78
prev461:63d4de8dcec6
next477:9a373f2ff009
author nkeynes
date Sat Oct 27 05:47:55 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix BIOS reloading
file annotate diff log raw
1.1 --- a/src/dreamcast.c Tue Oct 23 10:48:24 2007 +0000
1.2 +++ b/src/dreamcast.c Sat Oct 27 05:47:55 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dreamcast.c,v 1.25 2007-10-23 10:48:24 nkeynes Exp $
1.6 + * $Id: dreamcast.c,v 1.26 2007-10-27 05:47:55 nkeynes Exp $
1.7 * Central switchboard for the system. This pulls all the individual modules
1.8 * together into some kind of coherent structure. This is also where you'd
1.9 * add Naomi support, if I ever get a board to play with...
1.10 @@ -67,11 +67,8 @@
1.11 mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.12 mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH );
1.13 mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.14 - if( mem_load_rom( lxdream_get_config_value(CONFIG_BIOS_PATH),
1.15 - 0x00000000, 0x00200000, 0x89f2b1a1 ) == NULL ) {
1.16 - /* Bios wasn't found. Dump an empty ram region in there for something to do */
1.17 - mem_create_ram_region( 0x00000000, 0x00200000, MEM_REGION_BIOS );
1.18 - }
1.19 + mem_load_rom( lxdream_get_config_value(CONFIG_BIOS_PATH),
1.20 + 0x00000000, 0x00200000, 0x89f2b1a1, MEM_REGION_BIOS );
1.21 mem_create_ram_region( 0x00200000, 0x00020000, MEM_REGION_FLASH );
1.22 mem_load_block( lxdream_get_config_value(CONFIG_FLASH_PATH),
1.23 0x00200000, 0x00020000 );
1.24 @@ -88,7 +85,7 @@
1.25 void dreamcast_config_changed(void)
1.26 {
1.27 mem_load_rom( lxdream_get_config_value(CONFIG_BIOS_PATH),
1.28 - 0x00000000, 0x00200000, 0x89f2b1a1 );
1.29 + 0x00000000, 0x00200000, 0x89f2b1a1, MEM_REGION_BIOS );
1.30 mem_load_block( lxdream_get_config_value(CONFIG_FLASH_PATH),
1.31 0x00200000, 0x00020000 );
1.32 }
.