MMU.fw.data is now entirely cleared to zero (instead of the first 512 bytes) before anything (NDS_CreateDummyFirmware)

This commit is contained in:
luigi__ 2008-12-23 21:44:07 +00:00
parent 01b2c8076f
commit 75041c7196
1 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ int NDS_LoadROM( const char *filename, int bmtype, u32 bmsize,
free(noext); free(noext);
return -1; return -1;
} }
i = reader->Read(file, data, size); i = reader->Read(file, data, size);
reader->DeInit(file); reader->DeInit(file);
MMU_unsetRom(); MMU_unsetRom();
@ -759,7 +759,7 @@ int NDS_CreateDummyFirmware( struct NDS_fw_config_data *user_settings)
/* /*
* Create the firmware header * Create the firmware header
*/ */
memset( MMU.fw.data, 0, 0x200); memset( MMU.fw.data, 0, 0x40000);
/* firmware identifier */ /* firmware identifier */
MMU.fw.data[0x8] = 'M'; MMU.fw.data[0x8] = 'M';