GB Memory: Reset ROM bank when loading a ROM
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Dec 2016 21:22:29 -0800
2 files changed,
2 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -66,6 +66,7 @@ - GB Audio: Simplify envelope code
- GB Audio: Improve initial envelope samples - GB Audio: Initialize wave RAM to GBC values - Debugger: Add functions for read- or write-only watchpoints + - GB Memory: Reset ROM bank when loading a ROM 0.5.1: (2016-10-05) Bugfixes:
M
src/gb/gb.c
→
src/gb/gb.c
@@ -108,6 +108,7 @@ gb->memory.rom = gb->pristineRom;
gb->memory.romBase = gb->memory.rom; gb->memory.romSize = gb->pristineRomSize; gb->romCrc32 = doCrc32(gb->memory.rom, gb->memory.romSize); + GBMBCSwitchBank(&gb->memory, gb->memory.currentBank); if (gb->cpu) { struct LR35902Core* cpu = gb->cpu;