GB MBC: Remove erroneous bank 0 wrapping
Vicki Pfau vi@endrift.com
Sun, 05 Nov 2017 21:05:06 -0800
6 files changed,
1 insertions(+),
6 deletions(-)
M
src/gb/mbc.c
→
src/gb/mbc.c
@@ -45,9 +45,6 @@ if (bankStart + GB_SIZE_CART_BANK0 > gb->memory.romSize) {
mLOG(GB_MBC, GAME_ERROR, "Attempting to switch to an invalid ROM bank: %0X", bank); bankStart &= (gb->memory.romSize - 1); bank = bankStart / GB_SIZE_CART_BANK0; - if (!bank) { - ++bank; - } } gb->memory.romBank = &gb->memory.rom[bankStart]; gb->memory.currentBank = bank;