diff --git a/source/ngc/fceuconfig.cpp b/source/ngc/fceuconfig.cpp index ac1623f..aafd738 100644 --- a/source/ngc/fceuconfig.cpp +++ b/source/ngc/fceuconfig.cpp @@ -29,6 +29,10 @@ struct SGCSettings GCSettings; ***************************************************************************/ void FixInvalidSettings() { + if(GCSettings.LoadMethod > 4) + GCSettings.LoadMethod = DEVICE_AUTO; + if(GCSettings.SaveMethod > 4) + GCSettings.SaveMethod = DEVICE_AUTO; if(!(GCSettings.zoomHor > 0.5 && GCSettings.zoomHor < 1.5)) GCSettings.zoomHor = 1.0; if(!(GCSettings.zoomVert > 0.5 && GCSettings.zoomVert < 1.5)) diff --git a/source/ngc/fceugx.h b/source/ngc/fceugx.h index dfe9331..dfe5bec 100644 --- a/source/ngc/fceugx.h +++ b/source/ngc/fceugx.h @@ -62,7 +62,7 @@ struct SGCSettings{ int AutoLoad; int AutoSave; int LoadMethod; // For ROMS: Auto, SD, DVD, USB, Network (SMB) - int SaveMethod; // For SRAM, Freeze, Prefs: Auto, SD, Memory Card Slot A, Memory Card Slot B, USB, SMB + int SaveMethod; // For SRAM, Freeze, Prefs: Auto, SD, USB, SMB char LoadFolder[MAXPATHLEN]; // Path to game files char SaveFolder[MAXPATHLEN]; // Path to save files char CheatFolder[MAXPATHLEN]; // Path to cheat files diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index 8dd18f2..214d319 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -3453,7 +3453,7 @@ static int MenuSettingsFile() // correct load/save methods out of bounds if(GCSettings.LoadMethod > 4) GCSettings.LoadMethod = 0; - if(GCSettings.SaveMethod > 5) + if(GCSettings.SaveMethod > 4) GCSettings.SaveMethod = 0; if (GCSettings.LoadMethod == DEVICE_AUTO) sprintf (options.value[0],"Auto Detect");