mirror of https://github.com/mgba-emu/mgba.git
GB: Reset SRAM bank after loading save
This commit is contained in:
parent
4eeff830ed
commit
adbda85107
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue