mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-25 04:21:53 +01:00
commit
1a081eb6f6
@ -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
|
||||
//******************************************
|
||||
//******************************************
|
||||
|
Loading…
Reference in New Issue
Block a user