GB: Reset SRAM bank after loading save

This commit is contained in:
Vicki Pfau 2018-09-16 18:46:53 -07:00
parent 4eeff830ed
commit adbda85107
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ bool GBLoadSave(struct GB* gb, struct VFile* vf) {
gb->sramRealVf = vf;
if (gb->sramSize) {
GBResizeSram(gb, gb->sramSize);
GBMBCSwitchSramBank(gb, gb->memory.sramCurrentBank);
}
return vf;
}