[Android] Change the names of the functions responsible for loading/saving config values in UserPreferences.java. Makes readability better, since they have names that actually go with each other now. LoadIniToPrefs() and SavePrefsToIni().

This commit is contained in:
Lioncash 2013-10-08 19:08:06 -04:00
parent efac4bc608
commit a317391e3d
4 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,7 @@ public final class DolphinEmulator extends Activity
// Load the configuration keys set in the Dolphin ini and gfx ini files
// into the application's shared preferences.
UserPreferences.LoadDolphinConfigToPrefs(this);
UserPreferences.LoadIniToPrefs(this);
}
}
}

View File

@ -67,6 +67,6 @@ public final class CPUSettingsFragment extends PreferenceFragment
super.onDestroy();
// When this fragment is destroyed, force the settings to be saved to the ini file.
UserPreferences.SaveConfigToDolphinIni(m_activity);
UserPreferences.SavePrefsToIni(m_activity);
}
}

View File

@ -22,11 +22,11 @@ import android.preference.PreferenceManager;
public final class UserPreferences
{
/**
* Loads the set config items from the Dolphin config files to the shared preferences of this front-end
* Loads the settings stored in the Dolphin ini config files to the shared preferences of this front-end.
*
* @param ctx The context used to retrieve the SharedPreferences instance.
*/
public static void LoadDolphinConfigToPrefs(Context ctx)
public static void LoadIniToPrefs(Context ctx)
{
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
@ -106,11 +106,11 @@ public final class UserPreferences
}
/**
* Writes the config to the Dolphin ini file.
* Writes the preferences set in the front-end to the Dolphin ini files.
*
* @param ctx The context used to retrieve the user settings.
* */
public static void SaveConfigToDolphinIni(Context ctx)
public static void SavePrefsToIni(Context ctx)
{
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);

View File

@ -294,6 +294,6 @@ public final class VideoSettingsFragment extends PreferenceFragment
super.onDestroy();
// When the fragment is done being used, save the settings to the Dolphin ini file.
UserPreferences.SaveConfigToDolphinIni(m_activity);
UserPreferences.SavePrefsToIni(m_activity);
}
}