GB: Restore RTC state if loading save after reset
Vicki Pfau vi@endrift.com
Wed, 02 Dec 2020 00:06:00 -0800
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/gb/gb.c
→
src/gb/gb.c
@@ -160,6 +160,10 @@ gb->sramRealVf = vf;
if (gb->sramSize) { GBResizeSram(gb, gb->sramSize); GBMBCSwitchSramBank(gb, gb->memory.sramCurrentBank); + + if (gb->memory.mbcType == GB_MBC3_RTC) { + GBMBCRTCRead(gb); + } } return vf; }