GBA: Fix setting mask in ROM size coercion

This commit is contained in:
Vicki Pfau 2018-07-02 21:30:45 -07:00
parent 71f39ba1b6
commit d620faba0a
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@ bool GBALoadROM(struct GBA* gba, struct VFile* vf) {
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) {