aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DSi.cpp7
-rw-r--r--src/GPU.cpp2
-rw-r--r--src/NDS.cpp15
3 files changed, 21 insertions, 3 deletions
diff --git a/src/DSi.cpp b/src/DSi.cpp
index c8d4c7d..ee9d21c 100644
--- a/src/DSi.cpp
+++ b/src/DSi.cpp
@@ -21,8 +21,7 @@
#include "NDS.h"
#include "DSi.h"
#include "ARM.h"
-#include "tiny-AES-c/aes.hpp"
-#include "sha1/sha1.h"
+#include "GPU.h"
#include "Platform.h"
#include "DSi_NDMA.h"
@@ -121,6 +120,10 @@ void Reset()
SDMMC->Reset();
SDIO->Reset();
+
+ // LCD init flag
+ GPU::DispStat[0] |= (1<<6);
+ GPU::DispStat[1] |= (1<<6);
}
bool LoadBIOS()
diff --git a/src/GPU.cpp b/src/GPU.cpp
index dcd79b4..0eb321c 100644
--- a/src/GPU.cpp
+++ b/src/GPU.cpp
@@ -20,7 +20,7 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
-u64 vbltime;
+
namespace GPU
{
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 7513d57..6622373 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -1600,6 +1600,21 @@ void debug(u32 param)
fwrite(&val, 4, 1, shit);
}
fclose(shit);*/
+ FILE*
+ shit = fopen("debug/dump9.bin", "wb");
+ for (u32 i = 0x02000000; i < 0x04000000; i+=4)
+ {
+ u32 val = DSi::ARM9Read32(i);
+ fwrite(&val, 4, 1, shit);
+ }
+ fclose(shit);
+ shit = fopen("debug/dump7.bin", "wb");
+ for (u32 i = 0x02000000; i < 0x04000000; i+=4)
+ {
+ u32 val = DSi::ARM7Read32(i);
+ fwrite(&val, 4, 1, shit);
+ }
+ fclose(shit);
}