all repos — mgba @ 0d25e8079172aee82958ce4babf3e0ef470200fb

mGBA Game Boy Advance Emulator

GB: Reset SRAM bank after unmasking save
Vicki Pfau vi@endrift.com
Sun, 16 Sep 2018 23:27:29 -0700
commit

0d25e8079172aee82958ce4babf3e0ef470200fb

parent

adbda8510792919e82a89a9d94902b8d66d4f8fd

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gb/gb.csrc/gb/gb.c

@@ -269,6 +269,7 @@ vf->seek(vf, 0, SEEK_SET);

vf->read(vf, gb->memory.sram, gb->sramSize); gb->sramMaskWriteback = false; } + GBMBCSwitchSramBank(gb, gb->memory.sramCurrentBank); vf->close(vf); }