make savestates 100% compatible again

This commit is contained in:
RSDuck 2019-11-05 18:50:17 +01:00
parent 3e7483636f
commit 1cfbbcbb2a
1 changed files with 5 additions and 1 deletions

View File

@ -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);