mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
This commit is contained in:
parent
2eee39c290
commit
118710a63d
@ -29,6 +29,10 @@ struct SGCSettings GCSettings;
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void FixInvalidSettings()
|
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))
|
if(!(GCSettings.zoomHor > 0.5 && GCSettings.zoomHor < 1.5))
|
||||||
GCSettings.zoomHor = 1.0;
|
GCSettings.zoomHor = 1.0;
|
||||||
if(!(GCSettings.zoomVert > 0.5 && GCSettings.zoomVert < 1.5))
|
if(!(GCSettings.zoomVert > 0.5 && GCSettings.zoomVert < 1.5))
|
||||||
|
@ -62,7 +62,7 @@ struct SGCSettings{
|
|||||||
int AutoLoad;
|
int AutoLoad;
|
||||||
int AutoSave;
|
int AutoSave;
|
||||||
int LoadMethod; // For ROMS: Auto, SD, DVD, USB, Network (SMB)
|
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 LoadFolder[MAXPATHLEN]; // Path to game files
|
||||||
char SaveFolder[MAXPATHLEN]; // Path to save files
|
char SaveFolder[MAXPATHLEN]; // Path to save files
|
||||||
char CheatFolder[MAXPATHLEN]; // Path to cheat files
|
char CheatFolder[MAXPATHLEN]; // Path to cheat files
|
||||||
|
@ -3453,7 +3453,7 @@ static int MenuSettingsFile()
|
|||||||
// correct load/save methods out of bounds
|
// correct load/save methods out of bounds
|
||||||
if(GCSettings.LoadMethod > 4)
|
if(GCSettings.LoadMethod > 4)
|
||||||
GCSettings.LoadMethod = 0;
|
GCSettings.LoadMethod = 0;
|
||||||
if(GCSettings.SaveMethod > 5)
|
if(GCSettings.SaveMethod > 4)
|
||||||
GCSettings.SaveMethod = 0;
|
GCSettings.SaveMethod = 0;
|
||||||
|
|
||||||
if (GCSettings.LoadMethod == DEVICE_AUTO) sprintf (options.value[0],"Auto Detect");
|
if (GCSettings.LoadMethod == DEVICE_AUTO) sprintf (options.value[0],"Auto Detect");
|
||||||
|
Loading…
Reference in New Issue
Block a user