mirror of https://github.com/mgba-emu/mgba.git
GB: Fix ROM bank initialization
This commit is contained in:
parent
cbc54ca09a
commit
9a4db4b03d
|
@ -46,7 +46,7 @@ void GBMemoryReset(struct GB* gb) {
|
|||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue