diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 6a6ca4b75..63dd58f44 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -43,6 +43,7 @@ #include "path.h" +//int xxctr=0; //#define LOG_ARM9 //#define LOG_ARM7 //bool dolog = false; @@ -2084,29 +2085,34 @@ void NDS_Reset() MMU_Reset(); - //put garbage in vram for homebrew games, to help mimic the situation where libnds does not clear out junk + //put random garbage in vram for homebrew games, to help mimic the situation where libnds does not clear out junk //which the card's launcher may or may not have left behind - if(gameInfo.isHomebrew) - { - u32 w=100000,x=99,y=117,z=19382173; - CTASSERT(sizeof(MMU.ARM9_LCD) < sizeof(MMU.MAIN_MEM)); - CTASSERT(sizeof(MMU.ARM9_VMEM) < sizeof(MMU.MAIN_MEM)); - CTASSERT(sizeof(MMU.ARM9_ITCM) < sizeof(MMU.MAIN_MEM)); - CTASSERT(sizeof(MMU.ARM9_DTCM) < sizeof(MMU.MAIN_MEM)); - for(int i=0;i>19))^(t^(t>>8))); - MMU.MAIN_MEM[i] = t; - if (i>19))^(t^(t>>8))); + // //MMU.MAIN_MEM[i] = t; + // if (i