change pref saving

This commit is contained in:
dborth 2008-10-03 21:19:45 +00:00
parent a2136a2ac4
commit e3e76e1d3d
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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];