mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 15:04:15 +01:00
Use sg1000.txt database
Use sg1000.txt database to verify/rename SG-1000 dumps
This commit is contained in:
parent
91523269f4
commit
ce436e8a77
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user