aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-10-18 03:04:39 +0200
committerStapleButter <thetotalworm@gmail.com>2018-10-18 03:04:39 +0200
commit3a54b9178b761800cd8cfe0a51b073b893f59e79 (patch)
treee617fae25c4356c6cb5b0f5598d9f44bbfcfc975 /src/NDS.cpp
parentcbe5780837c63d46a0fc83d50102625bf5009959 (diff)
RTC done. misc shito.
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index d2551dc..525c925 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -501,9 +501,14 @@ bool DoSavestate(Savestate* file)
for (int i = 0; i < 8; i++)
DMAs[i]->DoSavestate(file);
- // MapSharedWRAM
- // powcnt shito
+ file->Var8(&WRAMCnt);
+ if (!file->Saving)
+ {
+ // 'dept of redundancy dept'
+ // but we do need to update the mappings
+ MapSharedWRAM(WRAMCnt);
+ }
ARM9->DoSavestate(file);
ARM7->DoSavestate(file);
@@ -513,9 +518,14 @@ bool DoSavestate(Savestate* file)
GPU::DoSavestate(file);
SPU::DoSavestate(file);
SPI::DoSavestate(file);
- // RTC
+ RTC::DoSavestate(file);
// wifi
+ if (!file->Saving)
+ {
+ GPU::DisplaySwap(PowerControl9>>15);
+ }
+
return true;
}