Fixed: Writing to 3XXX in MBC5 before writing to 2XXX no longer switches to the wrong bank.

This commit is contained in:
Lior Halphon 2017-02-16 23:13:55 +02:00
parent 421d3b27f5
commit 6b1363e96e
1 changed files with 5 additions and 0 deletions

View File

@ -137,4 +137,9 @@ void GB_configure_cart(GB_gameboy_t *gb)
gb->mbc1_wiring = GB_MBC1M_WIRING;
}
}
/* Set MBC5's bank to 1 correctly */
if (gb->cartridge_type->mbc_type == GB_MBC5) {
gb->mbc5.rom_bank_low = 1;
}
}