From 1cfbbcbb2af09c7f56ca3f6303b0ce8a36cd7146 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 5 Nov 2019 18:50:17 +0100 Subject: [PATCH] make savestates 100% compatible again --- src/ARM.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ARM.cpp b/src/ARM.cpp index 2f4aa900..896bb5c8 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -159,7 +159,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);