all repos — mgba @ 68af1131aa92c1f51d1d39c17aa045a693ec1150

mGBA Game Boy Advance Emulator

GB: Fix reading ROM immediately after unmapping BIOS
Vicki Pfau vi@endrift.com
Tue, 01 Oct 2019 18:58:44 -0700
commit

68af1131aa92c1f51d1d39c17aa045a693ec1150

parent

c76f173880830d573c55c4b719aa1eef8e5993ba

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

jump to
M CHANGESCHANGES

@@ -46,6 +46,7 @@ - FFmpeg: Drain recording buffers

- Shaders: Fix gba-color shader resolution (fixes mgba.io/i/1435) - Qt: Fix LibraryController initialization (fixes mgba.io/i/1324) - Switch: Fix audio when video rate desyncs (fixes mgba.io/i/1532) + - GB: Fix reading ROM immediately after unmapping BIOS Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/gb/gb.csrc/gb/gb.c

@@ -573,6 +573,7 @@ void GBUnmapBIOS(struct GB* gb) {

if (gb->memory.romBase < gb->memory.rom || gb->memory.romBase > &gb->memory.rom[gb->memory.romSize - 1]) { free(gb->memory.romBase); gb->memory.romBase = gb->memory.rom; + gb->cpu->memory.setActiveRegion(gb->cpu, gb->cpu->pc); } // XXX: Force AGB registers for AGB-mode if (gb->model == GB_MODEL_AGB && gb->cpu->pc == 0x100) {