all repos — mgba @ 938f2a49244e249282cb567bdc536f09610d69ff

mGBA Game Boy Advance Emulator

GB: Fix crash when changing ROM while in banked address space
Vicki Pfau vi@endrift.com
Wed, 24 Feb 2021 01:34:55 -0800
commit

938f2a49244e249282cb567bdc536f09610d69ff

parent

67475a6da8236eb6b8d307732db8ee8f50d69715

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

jump to
M CHANGESCHANGES

@@ -75,6 +75,7 @@ - Debugger: Close trace log when done tracing

- Debugger: Fix change watchpoints (fixes mgba.io/i/1947) - FFmpeg: Fix some small memory leaks - FFmpeg: Fix encoding of time base + - GB: Fix crash when changing ROM while in banked address space - GB Video: Fix SGB video logs - GBA: Fix loading multiboot ELF files (fixes mgba.io/i/1949) - mGUI: Don't attempt to preload files larger than can fit in RAM
M src/gb/gb.csrc/gb/gb.c

@@ -119,6 +119,7 @@ gb->romCrc32 = doCrc32(gb->memory.rom, gb->memory.romSize);

GBMBCInit(gb); if (gb->cpu) { + GBMBCSwitchBank(gb, 0); struct SM83Core* cpu = gb->cpu; cpu->memory.setActiveRegion(cpu, cpu->pc); }