GBA: Fix setting mask in ROM size coercion
Vicki Pfau vi@endrift.com
Mon, 02 Jul 2018 21:30:45 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -398,6 +398,7 @@ memcpy(newRom, gba->memory.rom, gba->pristineRomSize);
gba->memory.rom = newRom; #endif gba->memory.romSize = SIZE_CART0; + gba->memory.romMask = SIZE_CART0 - 1; gba->isPristine = false; } if (gba->cpu && gba->memory.activeRegion >= REGION_CART0) {