mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 00:15:05 +01:00
Fix dumping Tactics Ogre
This commit is contained in:
parent
29814cb31b
commit
34a1c6b336
@ -4,7 +4,7 @@
|
||||
This project represents a community-driven effort to provide
|
||||
an easy to build and easy to modify cartridge dumper.
|
||||
|
||||
Date: 2023-06-26
|
||||
Date: 2023-07-04
|
||||
Version: 12.6
|
||||
|
||||
SD lib: https://github.com/greiman/SdFat
|
||||
@ -15,7 +15,7 @@
|
||||
RTC lib: https://github.com/adafruit/RTClib
|
||||
Frequency lib: https://github.com/PaulStoffregen/FreqCount
|
||||
|
||||
Compiled with Arduino IDE 2.1.0
|
||||
Compiled with Arduino IDE 2.1.1
|
||||
|
||||
Thanks to:
|
||||
MichlK - ROM Reader for Super Nintendo
|
||||
|
@ -881,10 +881,6 @@ void checkAltConf(char crcStr[9]) {
|
||||
|
||||
// Check if checksum string is a match else go to next entry in database
|
||||
if (strcmp(tempStr2, checksumStr) == 0) {
|
||||
print_Msg(F("Header CRC32: "));
|
||||
println_Msg(crcStr);
|
||||
display_Update();
|
||||
|
||||
// Skip the , in the file
|
||||
myFile.seekCur(1);
|
||||
|
||||
@ -894,6 +890,10 @@ void checkAltConf(char crcStr[9]) {
|
||||
}
|
||||
tempStr3[8] = '\0';
|
||||
|
||||
print_Msg(F("Header CRC32: "));
|
||||
println_Msg(tempStr3);
|
||||
display_Update();
|
||||
|
||||
// Skip the , in the file
|
||||
myFile.seekCur(1);
|
||||
|
||||
@ -906,6 +906,11 @@ void checkAltConf(char crcStr[9]) {
|
||||
// Read number of banks
|
||||
byte numBanks2 = (myFile.read() - 48) * 100 + (myFile.read() - 48) * 10 + (myFile.read() - 48);
|
||||
|
||||
// skip CRLF
|
||||
myFile.seekCur(2);
|
||||
// skip third empty line
|
||||
skip_line(&myFile);
|
||||
|
||||
// Some games have the same checksum, so compare CRC32 of header area with database too
|
||||
if (strcmp(tempStr3, crcStr) == 0) {
|
||||
println_Msg(F("Found"));
|
||||
|
Loading…
Reference in New Issue
Block a user