mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 03:29:22 +01:00
change pref saving
This commit is contained in:
parent
a2136a2ac4
commit
e3e76e1d3d
@ -529,7 +529,6 @@ FileOptions ()
|
||||
break;
|
||||
case -1: /*** Button B ***/
|
||||
case 7:
|
||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
||||
quit = 1;
|
||||
break;
|
||||
|
||||
@ -667,7 +666,6 @@ VideoOptions ()
|
||||
|
||||
case -1: // Button B
|
||||
case 13:
|
||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
||||
quit = 1;
|
||||
break;
|
||||
|
||||
@ -988,7 +986,6 @@ ConfigureControllers ()
|
||||
|
||||
case -1: /*** Button B ***/
|
||||
case 8:
|
||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
||||
/*** Return ***/
|
||||
quit = 1;
|
||||
break;
|
||||
@ -1042,6 +1039,7 @@ PreferencesMenu ()
|
||||
|
||||
case -1: /*** Button B ***/
|
||||
case 4:
|
||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
||||
quit = 1;
|
||||
break;
|
||||
|
||||
|
@ -311,7 +311,9 @@ decodePrefsData (int method)
|
||||
bool
|
||||
SavePrefs (int method, bool silent)
|
||||
{
|
||||
if(method == METHOD_AUTO)
|
||||
// there's no point in saving SMB settings TO SMB, because then we'll have no way to load them the next time!
|
||||
// so instead we'll save using whatever other method is available (eg: SD)
|
||||
if(method == METHOD_AUTO || method == METHOD_SMB)
|
||||
method = autoSaveMethod();
|
||||
|
||||
char filepath[1024];
|
||||
|
Loading…
Reference in New Issue
Block a user