mirror of https://github.com/mgba-emu/mgba.git
GB: Fix crash when changing ROM while in banked address space
This commit is contained in:
parent
67475a6da8
commit
938f2a4924
1
CHANGES
1
CHANGES
|
@ -75,6 +75,7 @@ Other fixes:
|
||||||
- Debugger: Fix change watchpoints (fixes mgba.io/i/1947)
|
- Debugger: Fix change watchpoints (fixes mgba.io/i/1947)
|
||||||
- FFmpeg: Fix some small memory leaks
|
- FFmpeg: Fix some small memory leaks
|
||||||
- FFmpeg: Fix encoding of time base
|
- FFmpeg: Fix encoding of time base
|
||||||
|
- GB: Fix crash when changing ROM while in banked address space
|
||||||
- GB Video: Fix SGB video logs
|
- GB Video: Fix SGB video logs
|
||||||
- GBA: Fix loading multiboot ELF files (fixes mgba.io/i/1949)
|
- GBA: Fix loading multiboot ELF files (fixes mgba.io/i/1949)
|
||||||
- mGUI: Don't attempt to preload files larger than can fit in RAM
|
- mGUI: Don't attempt to preload files larger than can fit in RAM
|
||||||
|
|
|
@ -119,6 +119,7 @@ bool GBLoadROM(struct GB* gb, struct VFile* vf) {
|
||||||
GBMBCInit(gb);
|
GBMBCInit(gb);
|
||||||
|
|
||||||
if (gb->cpu) {
|
if (gb->cpu) {
|
||||||
|
GBMBCSwitchBank(gb, 0);
|
||||||
struct SM83Core* cpu = gb->cpu;
|
struct SM83Core* cpu = gb->cpu;
|
||||||
cpu->memory.setActiveRegion(cpu, cpu->pc);
|
cpu->memory.setActiveRegion(cpu, cpu->pc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue