diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index c04f34e..90b3bea 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -3215,7 +3215,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"); diff --git a/source/ngc/vba.h b/source/ngc/vba.h index a82de30..7f0e836 100644 --- a/source/ngc/vba.h +++ b/source/ngc/vba.h @@ -47,7 +47,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/vbaconfig.cpp b/source/ngc/vbaconfig.cpp index 868ab0c..aea8d41 100644 --- a/source/ngc/vbaconfig.cpp +++ b/source/ngc/vbaconfig.cpp @@ -24,6 +24,10 @@ struct SGCSettings GCSettings; ***************************************************************************/ void FixInvalidSettings() { + if(GCSettings.LoadMethod > 4) + GCSettings.LoadMethod = DEVICE_AUTO; + if(GCSettings.SaveMethod > 4) + GCSettings.SaveMethod = DEVICE_AUTO; if(!(GCSettings.gbaZoomHor > 0.5 && GCSettings.gbaZoomHor < 1.5)) GCSettings.gbaZoomHor = 1.0; if(!(GCSettings.gbaZoomVert > 0.5 && GCSettings.gbaZoomVert < 1.5))