RTC done. misc shito.

This commit is contained in:
StapleButter
2018-10-18 03:04:39 +02:00
parent cbe5780837
commit 3a54b9178b
3 changed files with 39 additions and 3 deletions

View File

@ -501,9 +501,14 @@ bool DoSavestate(Savestate* file)
for (int i = 0; i < 8; i++)
DMAs[i]->DoSavestate(file);
// MapSharedWRAM
// powcnt shito
file->Var8(&WRAMCnt);
if (!file->Saving)
{
// 'dept of redundancy dept'
// but we do need to update the mappings
MapSharedWRAM(WRAMCnt);
}
ARM9->DoSavestate(file);
ARM7->DoSavestate(file);
@ -513,9 +518,14 @@ bool DoSavestate(Savestate* file)
GPU::DoSavestate(file);
SPU::DoSavestate(file);
SPI::DoSavestate(file);
// RTC
RTC::DoSavestate(file);
// wifi
if (!file->Saving)
{
GPU::DisplaySwap(PowerControl9>>15);
}
return true;
}