Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Instead of wiping shared preferences, set the default value…
…s so the settings are actually selected when going in to the settings menu.
  • Loading branch information
Sonicadvance1 committed Jul 5, 2013
1 parent a610cda commit c19858c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -118,7 +118,9 @@ public void onCreate(Bundle savedInstanceState) {

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
SharedPreferences.Editor editor = prefs.edit();
editor.clear();
editor.putString("cpupref", NativeLibrary.GetConfig("Dolphin.ini", "Core", "CPUCore", "3"));
editor.putBoolean("dualcorepref", NativeLibrary.GetConfig("Dolphin.ini", "Core", "CPUThread", "False").equals("True") ? true : false);
editor.putString("gpupref", NativeLibrary.GetConfig("Dolphin.ini", "Core", "GFXBackend ", "Software Renderer"));
editor.commit();
}
}
Expand Down

0 comments on commit c19858c

Please sign in to comment.