mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
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:
19
src/CP15.cpp
19
src/CP15.cpp
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user