aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2019-11-05 18:50:17 +0100
committerRSDuck <rsduck@users.noreply.github.com>2020-04-26 13:05:07 +0200
commit0c5311731b8e249c17ce68af1d026aca230e7711 (patch)
tree932647adaa274da1924840c0907b201c9cd2d746
parent386100c053adad10ab7de066d37f383d58d5cfa1 (diff)
make savestates 100% compatible again
-rw-r--r--src/ARM.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ARM.cpp b/src/ARM.cpp
index 4fab60e..9ab9546 100644
--- a/src/ARM.cpp
+++ b/src/ARM.cpp
@@ -113,7 +113,11 @@ void ARM::DoSavestate(Savestate* file)
file->Var32((u32*)&Cycles);
//file->Var32((u32*)&CyclesToRun);
- file->Var32(&StopExecution);
+
+ // hack to make save states compatible
+ u32 halted = Halted;
+ file->Var32(&halted);
+ Halted = halted;
file->VarArray(R, 16*sizeof(u32));
file->Var32(&CPSR);