Merge pull request #531 from lesserkuma/master

Use correct mapper type for GB Mani 4 in 1
This commit is contained in:
sanni 2022-09-24 17:07:21 +02:00 committed by GitHub
commit 0740ba9cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}
/******************************************