[Core/MD] fixed Life on Mars / Life on Earth Reimagined original ROM detection

This commit is contained in:
ekeeke
2025-08-22 14:41:52 +02:00
parent 4f222dd5c5
commit 54eb537ad0
6 changed files with 6 additions and 5 deletions
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 4.2 MiB

+2 -2
View File
@@ -676,8 +676,8 @@ void md_cart_init(void)
flash_cfi_init(M29W320EB);
}
else if (strstr(rominfo.ROMType,"GM") && strstr(rominfo.product,"00000000-00") &&
(((rominfo.checksum == 0xcdf5) && (rominfo.realchecksum = 0x603A)) || /* Life on Mars */
((rominfo.checksum == 0x6bd5) && (rominfo.realchecksum = 0x1FEA)))) /* Life on Earth Reimagined */
(((rominfo.checksum == 0xcdf5) && (rominfo.realchecksum == 0x603A)) || /* Life on Mars */
((rominfo.checksum == 0x6bd5) && (rominfo.realchecksum == 0x1FEA)))) /* Life on Earth Reimagined */
{
/* SGDK flash-save mapper (ROM+SRAM) */
m68k.memory_map[0x3f].base = sram.sram;
+4 -3
View File
@@ -99,10 +99,11 @@ void sram_init(void)
sram.end = 0x203fff;
}
else if (strstr(rominfo.product,"00000000-00") &&
(((rominfo.checksum == 0xcdf5) && (rominfo.realchecksum = 0x603A)) ||
((rominfo.checksum == 0x6bd5) && (rominfo.realchecksum = 0x1FEA))))
(((rominfo.checksum == 0xcdf5) && (rominfo.realchecksum == 0x603A)) ||
((rominfo.checksum == 0x6bd5) && (rominfo.realchecksum == 0x1FEA)) ||
((rominfo.checksum == 0x45c1))))
{
/* Life on Mars / Life on Earth Reimagined (wrong addresses) */
/* Life on Mars / Life on Earth Reimagined / The Secret Of The Four Winds (wrong addresses) */
sram.start = 0x3f0000;
sram.end = 0x3fffff;
}