From 75041c71965aeb1877dfc5f7013e2daab166bbe8 Mon Sep 17 00:00:00 2001 From: luigi__ Date: Tue, 23 Dec 2008 21:44:07 +0000 Subject: [PATCH] MMU.fw.data is now entirely cleared to zero (instead of the first 512 bytes) before anything (NDS_CreateDummyFirmware) --- desmume/src/NDSSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 0d42edcd8..6e7b51851 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -378,7 +378,7 @@ int NDS_LoadROM( const char *filename, int bmtype, u32 bmsize, free(noext); return -1; } - + i = reader->Read(file, data, size); reader->DeInit(file); MMU_unsetRom(); @@ -759,7 +759,7 @@ int NDS_CreateDummyFirmware( struct NDS_fw_config_data *user_settings) /* * Create the firmware header */ - memset( MMU.fw.data, 0, 0x200); + memset( MMU.fw.data, 0, 0x40000); /* firmware identifier */ MMU.fw.data[0x8] = 'M';