mirror of https://github.com/mgba-emu/mgba.git
GB Memory: Reset ROM bank when loading a ROM
This commit is contained in:
parent
e32c0673da
commit
85285a68e5
1
CHANGES
1
CHANGES
|
@ -66,6 +66,7 @@ Misc:
|
|||
- 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:
|
||||
|
|
|
@ -108,6 +108,7 @@ bool GBLoadROM(struct GB* gb, struct VFile* vf) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue