start implementing actual shito

(also looks like the test bench in libui_sdl/main.cpp snuck in with the copyright update. shit)
This commit is contained in:
StapleButter
2018-09-15 02:47:34 +02:00
parent fea7955675
commit 0bfd019dc0
6 changed files with 63 additions and 0 deletions

View File

@ -57,6 +57,25 @@ void Reset()
DTCMSize = 0;
}
void Savestate(Savestate* file)
{
file->Section("CP15");
file->Var32(&Control);
file->Var32(&DTCMSetting);
file->Var32(&ITCMSetting);
if (!file->Saving)
{
UpdateDTCMSetting();
UpdateITCMSetting();
}
file->VarArray(ITCM, 0x8000);
file->VarArray(DTCM, 0x4000);
}
void UpdateDTCMSetting()
{