mirror of
https://github.com/libretro/mgba.git
synced 2025-02-22 08:41:45 +00:00
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…
x
Reference in New Issue
Block a user