From 0c5311731b8e249c17ce68af1d026aca230e7711 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 5 Nov 2019 18:50:17 +0100 Subject: make savestates 100% compatible again --- src/ARM.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3