aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-04-26 16:17:03 +0200
committerStapleButter <thetotalworm@gmail.com>2017-04-26 16:17:03 +0200
commit5217f4b05623647c1475e99740f3884e7192b519 (patch)
tree1c4555a4b3cd6b30b9e19fb472f841c94cc93d12 /src/NDS.cpp
parentd9afcc37b8b11e33a7ff4da1dc3f0d287cef8755 (diff)
set POSTFLG to 1 upon direct boot. fixes Pokémon White among others.
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index d22288f..1329f6c 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -218,6 +218,9 @@ void SetupDirectBoot()
ARM9->JumpTo(bootparams[1]);
ARM7->JumpTo(bootparams[5]);
+ PostFlag9 = 0x01;
+ PostFlag7 = 0x01;
+
PowerControl9 = 0x820F;
GPU::DisplaySwap(PowerControl9);
@@ -826,6 +829,14 @@ void debug(u32 param)
//for (int i = 0; i < 9; i++)
// printf("VRAM %c: %02X\n", 'A'+i, GPU::VRAMCNT[i]);
+
+ /*FILE* shit = fopen("debug/poke7.bin", "wb");
+ for (u32 i = 0x02000000; i < 0x03810000; i+=4)
+ {
+ u32 val = ARM7Read32(i);
+ fwrite(&val, 4, 1, shit);
+ }
+ fclose(shit);*/
}