mirror of https://github.com/mgba-emu/mgba.git
GB: Fix reading ROM immediately after unmapping BIOS
This commit is contained in:
parent
c76f173880
commit
68af1131aa
1
CHANGES
1
CHANGES
|
@ -46,6 +46,7 @@ Other fixes:
|
|||
- 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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue