mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-18 00:51:49 +01:00
Do compareCRC when reading game in SFM.
Don't rename when calculate checksum, just use filename and folder.
This commit is contained in:
parent
7eb3acb2bb
commit
eea4fb365f
@ -161,6 +161,7 @@ void sfmGameOptions() {
|
|||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
readROM_SFM();
|
readROM_SFM();
|
||||||
compare_checksum();
|
compare_checksum();
|
||||||
|
compareCRC("snes.txt", 0, 1, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Write sram
|
// Write sram
|
||||||
|
@ -1246,13 +1246,6 @@ boolean compare_checksum() {
|
|||||||
print_Msg(F("Checksum... "));
|
print_Msg(F("Checksum... "));
|
||||||
display_Update();
|
display_Update();
|
||||||
|
|
||||||
strcpy(fileName, romName);
|
|
||||||
strcat(fileName, ".sfc");
|
|
||||||
|
|
||||||
// last used rom folder
|
|
||||||
EEPROM_readAnything(0, foldern);
|
|
||||||
sprintf(folder, "SNES/ROM/%s/%d", romName, foldern - 1);
|
|
||||||
|
|
||||||
char calcsumStr[5];
|
char calcsumStr[5];
|
||||||
sprintf(calcsumStr, "%04X", calc_checksum(fileName, folder));
|
sprintf(calcsumStr, "%04X", calc_checksum(fileName, folder));
|
||||||
print_Msg(calcsumStr);
|
print_Msg(calcsumStr);
|
||||||
|
Loading…
Reference in New Issue
Block a user