mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
change pref saving
This commit is contained in:
parent
a2136a2ac4
commit
e3e76e1d3d
@ -529,7 +529,6 @@ FileOptions ()
|
|||||||
break;
|
break;
|
||||||
case -1: /*** Button B ***/
|
case -1: /*** Button B ***/
|
||||||
case 7:
|
case 7:
|
||||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
|
||||||
quit = 1;
|
quit = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -667,7 +666,6 @@ VideoOptions ()
|
|||||||
|
|
||||||
case -1: // Button B
|
case -1: // Button B
|
||||||
case 13:
|
case 13:
|
||||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
|
||||||
quit = 1;
|
quit = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -988,7 +986,6 @@ ConfigureControllers ()
|
|||||||
|
|
||||||
case -1: /*** Button B ***/
|
case -1: /*** Button B ***/
|
||||||
case 8:
|
case 8:
|
||||||
SavePrefs(GCSettings.SaveMethod, SILENT);
|
|
||||||
/*** Return ***/
|
/*** Return ***/
|
||||||
quit = 1;
|
quit = 1;
|
||||||
break;
|
break;
|
||||||
@ -1042,6 +1039,7 @@ PreferencesMenu ()
|
|||||||
|
|
||||||
case -1: /*** Button B ***/
|
case -1: /*** Button B ***/
|
||||||
case 4:
|
case 4:
|
||||||
|
SavePrefs(GCSettings.SaveMethod, SILENT);
|
||||||
quit = 1;
|
quit = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -311,7 +311,9 @@ decodePrefsData (int method)
|
|||||||
bool
|
bool
|
||||||
SavePrefs (int method, bool silent)
|
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();
|
method = autoSaveMethod();
|
||||||
|
|
||||||
char filepath[1024];
|
char filepath[1024];
|
||||||
|
Loading…
Reference in New Issue
Block a user