mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Improve Li Cheng heuristic slightly
This commit is contained in:
parent
153efa253c
commit
a305882dba
|
@ -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
|
||||
return GB_UNL_LI_CHENG;
|
||||
}
|
||||
if ((0x8000 << cart->romSize) != size) {
|
||||
return GB_UNL_LI_CHENG;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue