GB MBC: Remove erroneous bank 0 wrapping

This commit is contained in:
Vicki Pfau 2017-11-05 21:05:06 -08:00
parent 5522286c57
commit 7f9c7706bc
2 changed files with 1 additions and 3 deletions

View File

@ -8,6 +8,7 @@ Bugfixes:
- GBA Savedata: Fix crash when resizing flash
Misc:
- GBA: Improve multiboot image detection
- GB MBC: Remove erroneous bank 0 wrapping
0.6.1: (2017-10-01)
Bugfixes:

View File

@ -39,9 +39,6 @@ void GBMBCSwitchBank(struct GB* gb, int bank) {
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;