From 7eb3acb2bbed6b6058ae63149ad7d201a2eedda5 Mon Sep 17 00:00:00 2001 From: splash5 <2173030+splash5@users.noreply.github.com> Date: Sun, 11 Dec 2022 10:45:42 +0800 Subject: [PATCH 1/2] Fix "Kakinoki Shougi (Japan)" --- sd/snes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/snes.txt b/sd/snes.txt index 9e0256e..0a65a70 100644 --- a/sd/snes.txt +++ b/sd/snes.txt @@ -4214,7 +4214,7 @@ Kaizou Choujin Shubibinman Zero (Japan).sfc E59E1096,84AF,3D44B149,01,004 Kakinoki Shougi (Japan).sfc -BC1A265F,F70B,3BA48939,12,024 +9E2C5CE4,F70B,08BF4E75,16,032 Kamaitachi no Yoru (Japan).sfc 71C631AA,815C,7D1A59F8,24,096 From eea4fb365f07a6847c7cc86219c489e7226bfe4d Mon Sep 17 00:00:00 2001 From: splash5 <2173030+splash5@users.noreply.github.com> Date: Sun, 11 Dec 2022 10:49:07 +0800 Subject: [PATCH 2/2] Do compareCRC when reading game in SFM. Don't rename when calculate checksum, just use filename and folder. --- Cart_Reader/SFM.ino | 1 + Cart_Reader/SNES.ino | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cart_Reader/SFM.ino b/Cart_Reader/SFM.ino index 5d88eff..470f45e 100644 --- a/Cart_Reader/SFM.ino +++ b/Cart_Reader/SFM.ino @@ -161,6 +161,7 @@ void sfmGameOptions() { sd.chdir("/"); readROM_SFM(); compare_checksum(); + compareCRC("snes.txt", 0, 1, 0); break; // Write sram diff --git a/Cart_Reader/SNES.ino b/Cart_Reader/SNES.ino index db8f06c..7b63b5b 100644 --- a/Cart_Reader/SNES.ino +++ b/Cart_Reader/SNES.ino @@ -1246,13 +1246,6 @@ boolean compare_checksum() { print_Msg(F("Checksum... ")); 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]; sprintf(calcsumStr, "%04X", calc_checksum(fileName, folder)); print_Msg(calcsumStr);