GB: Fix ROM bank initialization
Jeffrey Pfau jeffrey@endrift.com
Fri, 15 Jan 2016 16:51:47 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/memory.c
→
src/gb/memory.c
@@ -46,7 +46,7 @@ mappedMemoryFree(gb->memory.wram, GB_SIZE_WORKING_RAM);
} gb->memory.wram = anonymousMemoryMap(GB_SIZE_WORKING_RAM); gb->memory.wramBank = &gb->memory.wram[GB_SIZE_WORKING_RAM_BANK0]; - gb->memory.romBank = &gb->memory.rom[GB_BASE_CART_BANK0]; + gb->memory.romBank = &gb->memory.rom[GB_SIZE_CART_BANK0]; if (!gb->memory.wram) { GBMemoryDeinit(gb);