GB: Fix GBSavedataUnmask
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Aug 2016 10:00:35 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/gb.c
→
src/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); }