Use correct mapper type for GB Mani 4 in 1

This commit is contained in:
Lesserkuma 2022-09-24 15:34:46 +02:00
parent 3a9ccf65b0
commit 8713b49706

View File

@ -818,10 +818,19 @@ void getCartInfo_GB() {
myLength--;
}
// Detect M161 game
if ((strncmp(romName, "TETRIS SET", 9) == 0) && (sdBuffer[0x14D] == 0x3F)) {
// M161 (Mani 4 in 1)
if ((strncmp(romName, "TETRIS SET", 10) == 0) && (sdBuffer[0x14D] == 0x3F)) {
romType = 0x104;
}
// MMM01 (Mani 4 in 1)
if (
(strncmp(romName, "BOUKENJIMA2 SET", 15) == 0) && (sdBuffer[0x14D] == 0) ||
(strncmp(romName, "BUBBLEBOBBLE SET", 16) == 0) && (sdBuffer[0x14D] == 0xC6) ||
(strncmp(romName, "GANBARUGA SET", 13) == 0) && (sdBuffer[0x14D] == 0x90) ||
(strncmp(romName, "RTYPE 2 SET", 11) == 0) && (sdBuffer[0x14D] == 0x32)) {
romType = 0x0B;
}
}
/******************************************