Add support for "Fatman (Japan)"

This commit is contained in:
splash5 2023-02-26 15:40:53 +08:00
parent 1bd8555f31
commit aff7f09690

View File

@ -1091,6 +1091,12 @@ void getCartInfo_MD() {
cartSize = 0x80000; cartSize = 0x80000;
} }
// Fatman (Japan)
if (!strncmp(romName, "LACEGMT4401300J", 15) && (chksum == 0xffff)) {
chksum = 0xC560;
cartSize = 0xA0000;
}
// Some games are missing the ROM size in the header, in this case calculate ROM size by looking for mirror of the first line of the ROM // Some games are missing the ROM size in the header, in this case calculate ROM size by looking for mirror of the first line of the ROM
// This does not work for cartridges that have SRAM mapped directly after the maskrom like Striker (Europe) // This does not work for cartridges that have SRAM mapped directly after the maskrom like Striker (Europe)
if ((cartSize < 0x8000) || (cartSize > 0xEAF400)) { if ((cartSize < 0x8000) || (cartSize > 0xEAF400)) {