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