aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-09-15 03:41:09 +0200
committerStapleButter <thetotalworm@gmail.com>2018-09-15 03:41:09 +0200
commit7cbcc6c23085a3e957ed4ba4c1faad3e3101a973 (patch)
tree59f4b0b6c4e14475388d7edfc52ecd7fdcb64bca /src/NDS.cpp
parent60f24a7432d86c78fbb86a2dbb831cc283dfd1ed (diff)
zlarg
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index ee6dd10..d82db55 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -392,23 +392,33 @@ void Savestate(Savestate* file)
file->Var16(&DivCnt);
file->Var16(&SqrtCnt);
- // MapSharedWRAM
- // powcnt shito
-
-
- ARM9->Savestate(file);
- ARM7->Savestate(file);
- CP15::Savestate(file);
-
file->Var32(&CPUStop);
file->VarArray(Timers, 8*sizeof(Timer));
file->VarArray(TimerCheckMask, 2*sizeof(u8));
- // DMA
file->VarArray(DMA9Fill, 4*sizeof(u32));
- // sched etc
+ file->VarArray(SchedList, sizeof(SchedList));
+ file->Var32(&SchedListMask);
+ file->Var32(&(u32)CurIterationCycles);
+ file->Var32(&(u32)ARM7Offset);
+
+ // TODO: save KeyInput????
+ file->Var16(&KeyCnt);
+ file->Var16(&RCnt);
+
+
+ for (int i = 0; i < 8; i++)
+ DMAs[i]->Savestate(i);
+
+ // MapSharedWRAM
+ // powcnt shito
+
+
+ ARM9->Savestate(file);
+ ARM7->Savestate(file);
+ CP15::Savestate(file);
// NDSCart
// GPU