Fix renaming PCE ROM

This commit is contained in:
sanni 2022-04-15 12:52:59 +02:00
parent dc65d4e3f9
commit 9c102563d1
3 changed files with 7 additions and 11 deletions

View File

@ -4,8 +4,8 @@
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: 11.04.2022 Date: 15.04.2022
Version: 8.2 Version: 8.3
SD lib: https://github.com/greiman/SdFat SD lib: https://github.com/greiman/SdFat
OLED lib: https://github.com/adafruit/Adafruit_SSD1306 OLED lib: https://github.com/adafruit/Adafruit_SSD1306
@ -45,7 +45,7 @@
**********************************************************************************/ **********************************************************************************/
char ver[5] = "8.2"; char ver[5] = "8.3";
/****************************************** /******************************************
Libraries Libraries

View File

@ -527,14 +527,7 @@ void crc_search(char *file_p, char *folder_p, uint32_t rom_size, uint32_t crc)
print_Msg(F(".pce")); print_Msg(F(".pce"));
flag = CHKSUM_OK; flag = CHKSUM_OK;
strcat(gamename, ".pce"); strcat(gamename, ".pce");
rom.rename(gamename);
// Open filepath directory
if (!myDir.open(folder_p)) {
display_Clear();
print_Error(F("SD Error"), true);
}
rom.rename(&myDir, gamename);
myDir.close();
break; break;
} }
} }

View File

@ -1275,3 +1275,6 @@ Zipang
[CD] TurboGrafx CD System Card [CD] TurboGrafx CD System Card
FF2A5EC3 FF2A5EC3
Test Checksum
154803CC