Fix dumping Tactics Ogre

This commit is contained in:
sanni 2023-07-04 19:58:45 +02:00
parent 29814cb31b
commit 34a1c6b336
2 changed files with 11 additions and 6 deletions

View File

@ -4,7 +4,7 @@
This project represents a community-driven effort to provide This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper. an easy to build and easy to modify cartridge dumper.
Date: 2023-06-26 Date: 2023-07-04
Version: 12.6 Version: 12.6
SD lib: https://github.com/greiman/SdFat SD lib: https://github.com/greiman/SdFat
@ -15,7 +15,7 @@
RTC lib: https://github.com/adafruit/RTClib RTC lib: https://github.com/adafruit/RTClib
Frequency lib: https://github.com/PaulStoffregen/FreqCount Frequency lib: https://github.com/PaulStoffregen/FreqCount
Compiled with Arduino IDE 2.1.0 Compiled with Arduino IDE 2.1.1
Thanks to: Thanks to:
MichlK - ROM Reader for Super Nintendo MichlK - ROM Reader for Super Nintendo

View File

@ -881,10 +881,6 @@ void checkAltConf(char crcStr[9]) {
// Check if checksum string is a match else go to next entry in database // Check if checksum string is a match else go to next entry in database
if (strcmp(tempStr2, checksumStr) == 0) { if (strcmp(tempStr2, checksumStr) == 0) {
print_Msg(F("Header CRC32: "));
println_Msg(crcStr);
display_Update();
// Skip the , in the file // Skip the , in the file
myFile.seekCur(1); myFile.seekCur(1);
@ -894,6 +890,10 @@ void checkAltConf(char crcStr[9]) {
} }
tempStr3[8] = '\0'; tempStr3[8] = '\0';
print_Msg(F("Header CRC32: "));
println_Msg(tempStr3);
display_Update();
// Skip the , in the file // Skip the , in the file
myFile.seekCur(1); myFile.seekCur(1);
@ -906,6 +906,11 @@ void checkAltConf(char crcStr[9]) {
// Read number of banks // Read number of banks
byte numBanks2 = (myFile.read() - 48) * 100 + (myFile.read() - 48) * 10 + (myFile.read() - 48); 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 // Some games have the same checksum, so compare CRC32 of header area with database too
if (strcmp(tempStr3, crcStr) == 0) { if (strcmp(tempStr3, crcStr) == 0) {
println_Msg(F("Found")); println_Msg(F("Found"));