aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 8ae9969..3e0a6a8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -48,6 +48,13 @@ LRESULT CALLBACK derpo(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
fwrite(&blarg, 4, 1, f);
}
fclose(f);
+ f = fopen("mainram.bin", "wb");
+ for (u32 i = 0x2000000; i < 0x2400000; i+=4)
+ {
+ u32 blarg = NDS::ARM9Read32(i);
+ fwrite(&blarg, 4, 1, f);
+ }
+ fclose(f);
}
PostQuitMessage(0);
return 0;