all repos — mgba @ bf2aa98338a163457ddbe1bea0c2e7476fd6535d

mGBA Game Boy Advance Emulator

GB: Fix crash when masking savedata
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Dec 2016 18:47:20 -0800
commit

bf2aa98338a163457ddbe1bea0c2e7476fd6535d

parent

85367c37135577de88ed18cf1fe19b226c178b7b

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

jump to
M CHANGESCHANGES

@@ -35,6 +35,7 @@ - GBA: Add savegame override for Crash Bandicoot 2

- ARM7: PSR mode bits should not get sign extended - GBA: Only unhalt CPU if appropriate bit is set in IE - GBA Video: Fix out of bounds sprite transforms + - GB: Fix crash when masking savedata Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gb/gb.csrc/gb/gb.c

@@ -225,6 +225,7 @@ GBSramDeinit(gb);

gb->sramVf = vf; gb->sramMaskWriteback = writeback; gb->memory.sram = vf->map(vf, gb->sramSize, MAP_READ); + GBMBCSwitchSramBank(gb, gb->memory.sramCurrentBank); } void GBSavedataUnmask(struct GB* gb) {