all repos — mgba @ 24bb93085022595d6935b2fc5749eb92c7a3b00a

mGBA Game Boy Advance Emulator

GB: Fix GBSavedataUnmask
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Aug 2016 10:00:35 -0700
commit

24bb93085022595d6935b2fc5749eb92c7a3b00a

parent

0083fad9663157e2745e363896644267c5155105

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

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

@@ -127,10 +127,10 @@ gb->memory.sram = vf->map(vf, 0x20000, MAP_READ);

} void GBSavedataUnmask(struct GB* gb) { - GBSramDeinit(gb); if (gb->sramVf == gb->sramRealVf) { return; } + GBSramDeinit(gb); gb->sramVf = gb->sramRealVf; gb->memory.sram = gb->sramVf->map(gb->sramVf, 0x20000, MAP_WRITE); }