add missing shit to savestates. bump the version up.

This commit is contained in:
StapleButter
2018-12-11 21:50:28 +01:00
parent 40f3f91368
commit 3101bd595f
5 changed files with 43 additions and 21 deletions

View File

@ -66,14 +66,24 @@ void ARMv5::CP15DoSavestate(Savestate* file)
file->Var32(&DTCMSetting);
file->Var32(&ITCMSetting);
file->VarArray(ITCM, 0x8000);
file->VarArray(DTCM, 0x4000);
file->Var32(&PU_CodeCacheable);
file->Var32(&PU_DataCacheable);
file->Var32(&PU_DataCacheWrite);
file->Var32(&PU_CodeRW);
file->Var32(&PU_DataRW);
file->VarArray(PU_Region, 8*sizeof(u32));
if (!file->Saving)
{
UpdateDTCMSetting();
UpdateITCMSetting();
UpdatePURegions();
}
file->VarArray(ITCM, 0x8000);
file->VarArray(DTCM, 0x4000);
}
@ -225,6 +235,8 @@ void ARMv5::UpdatePURegions()
//UpdateRegionTimings(start<<12, end<<12);
}
// TODO: this is way unoptimized
// should be okay unless the game keeps changing shit, tho
UpdateRegionTimings(0x00000000, 0xFFFFFFFF);
}