GB: Fix crash when changing ROM while in banked address space
Vicki Pfau vi@endrift.com
Wed, 24 Feb 2021 01:34:55 -0800
2 files changed,
2 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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); }