all repos — mgba @ 74d140ed8b9230bcb72ab0a1010a34d5c8a15aec

mGBA Game Boy Advance Emulator

GB: Reset active region when reloading ROM
Jeffrey Pfau jeffrey@endrift.com
Wed, 05 Oct 2016 00:01:53 -0700
commit

74d140ed8b9230bcb72ab0a1010a34d5c8a15aec

parent

bf06f1e4439ddbe75828a1515aa723bb7c6d978e

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

jump to
M CHANGESCHANGES

@@ -40,6 +40,7 @@ - All: Split out install locations for Libretro and OpenEmu

- GBA Video: Clean up unused timers - Qt: Manage window sizes slightly better - Qt: Remember scale option independent of core dimensions + - GB: Reset active region when reloading ROM 0.5.0: (2016-09-19) Features:
M src/gb/gb.csrc/gb/gb.c

@@ -102,6 +102,11 @@ gb->memory.romBase = gb->memory.rom;

gb->memory.romSize = gb->pristineRomSize; gb->romCrc32 = doCrc32(gb->memory.rom, gb->memory.romSize); + if (gb->cpu) { + struct LR35902Core* cpu = gb->cpu; + cpu->memory.setActiveRegion(cpu, cpu->pc); + } + // TODO: error check return true; }