GB: Restore RTC state if loading save after reset

This commit is contained in:
Vicki Pfau 2020-12-02 00:06:00 -08:00
parent 046f7a3374
commit 63921e025e
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ bool GBLoadSave(struct GB* gb, struct VFile* vf) {
if (gb->sramSize) {
GBResizeSram(gb, gb->sramSize);
GBMBCSwitchSramBank(gb, gb->memory.sramCurrentBank);
if (gb->memory.mbcType == GB_MBC3_RTC) {
GBMBCRTCRead(gb);
}
}
return vf;
}