mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-23 21:19:16 +01:00
Update MD.ino
This commit is contained in:
parent
9d80d2497b
commit
57f2833322
@ -12,6 +12,7 @@ int eepSize;
|
|||||||
word addrhi;
|
word addrhi;
|
||||||
word addrlo;
|
word addrlo;
|
||||||
word chksum;
|
word chksum;
|
||||||
|
boolean is32x = 0;
|
||||||
|
|
||||||
//***********************************************
|
//***********************************************
|
||||||
// EEPROM SAVE TYPES
|
// EEPROM SAVE TYPES
|
||||||
@ -673,6 +674,11 @@ void getCartInfo_MD() {
|
|||||||
|
|
||||||
cartSize = ((long(readWord_MD(0xD2)) << 16) | readWord_MD(0xD3)) + 1;
|
cartSize = ((long(readWord_MD(0xD2)) << 16) | readWord_MD(0xD3)) + 1;
|
||||||
|
|
||||||
|
if ((readWord_MD(0x104 / 2) == 0x2033) && (readWord_MD(0x106 / 2) == 0x3258))
|
||||||
|
is32x = 1;
|
||||||
|
else
|
||||||
|
is32x = 0;
|
||||||
|
|
||||||
// Cart Checksum
|
// Cart Checksum
|
||||||
chksum = readWord_MD(0xC7);
|
chksum = readWord_MD(0xC7);
|
||||||
|
|
||||||
@ -1372,7 +1378,7 @@ void readROM_MD() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate and compare CRC32 with nointro
|
// Calculate and compare CRC32 with nointro
|
||||||
if (readWord_MD(0x105) == 0x3332)
|
if (is32x)
|
||||||
//database, crcString, renamerom, offset
|
//database, crcString, renamerom, offset
|
||||||
compareCRC("32x.txt", 0, 1, 0);
|
compareCRC("32x.txt", 0, 1, 0);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user