From 8ebe438af2c63e62be9da95c3a489c8007244a08 Mon Sep 17 00:00:00 2001 From: wntrmute Date: Fri, 5 Mar 2010 20:42:35 +0000 Subject: [PATCH] use correct address for argv --- desmume/src/NDSSystem.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 6fbfaa2dd..34bf791d0 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -2201,9 +2201,11 @@ void NDS_Reset() std::string rompath = "fat:/" + path.RomName; const u32 kCommandline = 0x027E0000; //const u32 kCommandline = 0x027FFF84; - _MMU_write32(0x027FFF70, 0x5f617267); - _MMU_write32(0x027FFF74, kCommandline); //(commandline starts here) - _MMU_write32(0x027FFF78, rompath.size()+1); + + // + _MMU_write32(0x02FFFE70, 0x5f617267); + _MMU_write32(0x02FFFE74, kCommandline); //(commandline starts here) + _MMU_write32(0x02FFFE78, rompath.size()+1); //0x027FFF7C (argc) //0x027FFF80 (argv) for(size_t i=0;i