mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix setting mask in ROM size coercion
This commit is contained in:
parent
71f39ba1b6
commit
d620faba0a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue