[Android] Instead of wiping shared preferences, set the default values so the settings are actually selected when going in to the settings menu.

This commit is contained in:
Ryan Houdek 2013-07-05 18:49:59 -05:00
parent a610cdac8b
commit c19858ca87

View File

@ -118,7 +118,9 @@ public class DolphinEmulator<MainActivity> extends Activity
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();
}
}