From f0bc36421029f61bb0ba4dc4efed86a0bfc63d0b Mon Sep 17 00:00:00 2001
From: StapleButter <thetotalworm@gmail.com>
Date: Fri, 27 Apr 2018 00:20:18 +0200
Subject: init AUXSPICNT to 0x8000. (guess sloppy DLDI drivers expect that)

---
 src/NDS.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/NDS.cpp b/src/NDS.cpp
index dfd7d80..ca84f98 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -233,6 +233,8 @@ void SetupDirectBoot()
     // checkme
     RCnt = 0x8000;
 
+    NDSCart::SPICnt = 0x8000;
+
     SPU::SetBias(0x200);
 
     ARM7BIOSProt = 0x1204;
@@ -890,7 +892,7 @@ void debug(u32 param)
     //    printf("VRAM %c: %02X\n", 'A'+i, GPU::VRAMCNT[i]);
 
     /*FILE*
-    shit = fopen("debug/pictochat.bin", "wb");
+    shit = fopen("debug/dldio.bin", "wb");
     for (u32 i = 0x02000000; i < 0x02400000; i+=4)
     {
         u32 val = ARM7Read32(i);
-- 
cgit v1.2.3