all repos — mgba @ 9a4db4b03d36acfef246c950884080a91aed1625

mGBA Game Boy Advance Emulator

GB: Fix ROM bank initialization
Jeffrey Pfau jeffrey@endrift.com
Fri, 15 Jan 2016 16:51:47 -0800
commit

9a4db4b03d36acfef246c950884080a91aed1625

parent

cbc54ca09ae246a83548cdf1babdc1553cc78a95

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gb/memory.csrc/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);