GB MBC: Improve Li Cheng heuristic slightly

This commit is contained in:
Vicki Pfau 2022-10-17 00:59:59 -07:00
parent 153efa253c
commit a305882dba
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ static enum GBMemoryBankControllerType _detectUnlMBC(const uint8_t* mem, size_t
if (cart->type == 0x01) { // Make sure we're not using a "fixed" version if (cart->type == 0x01) { // Make sure we're not using a "fixed" version
return GB_UNL_LI_CHENG; return GB_UNL_LI_CHENG;
} }
if ((0x8000 << cart->romSize) != size) {
return GB_UNL_LI_CHENG;
}
break; break;
} }