diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2019-11-05 18:50:17 +0100 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-04-26 13:05:07 +0200 |
commit | 0c5311731b8e249c17ce68af1d026aca230e7711 (patch) | |
tree | 932647adaa274da1924840c0907b201c9cd2d746 /src | |
parent | 386100c053adad10ab7de066d37f383d58d5cfa1 (diff) |
make savestates 100% compatible again
Diffstat (limited to 'src')
-rw-r--r-- | src/ARM.cpp | 6 |
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); |