Use sg1000.txt database

Use sg1000.txt database to verify/rename SG-1000 dumps
This commit is contained in:
PsyK0p4T 2022-10-27 22:25:34 +02:00 committed by GitHub
parent 91523269f4
commit ce436e8a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,11 @@ void _smsMenu() {
readROM_SMS();
if ((retrode_mode && !retrode_mode_sms) || retron_mode) {
compareCRC("gg.txt", 0, 1, 0);
} else {
}
else if (raphnet_mode_sg1000) {
compareCRC("sg1000.txt", 0, 1, 0);
}
else {
compareCRC("sms.txt", 0, 1, 0);
}
#ifdef global_log
@ -558,21 +562,23 @@ void getCartInfo_SMS() {
// Read rom and save to the SD card
void readROM_SMS() {
// Get name, add extension and convert to char array for sd lib
// Get name, add extension depending on the system and convert to char array for sd lib
EEPROM_readAnything(0, foldern);
strcpy(fileName, romName);
if ((retrode_mode && !retrode_mode_sms) || retron_mode) {
strcat(fileName, ".gg");
} else {
strcat(fileName, ".sms");
}
// create a new folder
EEPROM_readAnything(0, foldern);
if ((retrode_mode && !retrode_mode_sms) || retron_mode) {
sprintf(folder, "GG/ROM/%s/%d", romName, foldern);
} else {
}
else if (raphnet_mode_sg1000) {
strcat(fileName, ".sg");
sprintf(folder, "SG1000/ROM/%s/%d", romName, foldern);
}
else {
strcat(fileName, ".sms");
sprintf(folder, "SMS/ROM/%s/%d", romName, foldern);
}
// Create a new folder
sd.mkdir(folder, true);
sd.chdir(folder);
@ -756,4 +762,4 @@ void writeSRAM_SMS() {
//******************************************
// End of File
//******************************************
//******************************************