mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
add missing shit to savestates. bump the version up.
This commit is contained in:
13
src/ARM.cpp
13
src/ARM.cpp
@ -126,7 +126,18 @@ void ARM::DoSavestate(Savestate* file)
|
||||
file->Var32(&ExceptionBase);
|
||||
|
||||
if (!file->Saving)
|
||||
SetupCodeMem(R[15]); // should fix it
|
||||
{
|
||||
if (!Num)
|
||||
{
|
||||
SetupCodeMem(R[15]); // should fix it
|
||||
((ARMv5*)this)->RegionCodeCycles = ((ARMv5*)this)->MemTimings[R[15] >> 12][0];
|
||||
}
|
||||
else
|
||||
{
|
||||
CodeRegion = R[15] >> 24;
|
||||
CodeCycles = R[15] >> 15; // cheato
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ARMv5::DoSavestate(Savestate* file)
|
||||
|
Reference in New Issue
Block a user