all repos — mgba @ 85285a68e51d3d8b4030c8a45db8f4787beaec93

mGBA Game Boy Advance Emulator

GB Memory: Reset ROM bank when loading a ROM
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Dec 2016 21:22:29 -0800
commit

85285a68e51d3d8b4030c8a45db8f4787beaec93

parent

e32c0673dabb4df27bb2c7da94d0592806a6c56d

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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;