diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-09-01 03:07:16 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-09-01 03:07:16 -0400 |
| commit | 440ae412b048a5686cb2197ff67f83166ec1541b (patch) | |
| tree | c24c7fe0f79ac060c67d0c7d9f7d605c360f1127 /Source/Android/src/org | |
| parent | b03ff7a86b66435da4a6c65da6afaafce8e1a7bb (diff) | |
[Android] Add the option to show the on-screen FPS counter.
Diffstat (limited to 'Source/Android/src/org')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java b/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java index 7f4840b9a2..08d6ee2021 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java @@ -37,7 +37,8 @@ public final class UserPreferences editor.putString("cpuCorePref", getConfig("Dolphin.ini", "Core", "CPUCore", "3")); editor.putBoolean("dualCorePref", getConfig("Dolphin.ini", "Core", "CPUThread", "False").equals("True")); - editor.putString("gpuPref", getConfig("Dolphin.ini", "Core", "GFXBackend ", "Software Renderer")); + editor.putString("gpuPref", getConfig("Dolphin.ini", "Core", "GFXBackend ", "Software Renderer")); + editor.putBoolean("showFPS", getConfig("gfx_opengl.ini", "Settings", "ShowFPS", "False").equals("True")); editor.putBoolean("drawOnscreenControls", getConfig("Dolphin.ini", "Android", "ScreenControls", "True").equals("True")); editor.putString("internalResolution", getConfig("gfx_opengl.ini", "Settings", "EFBScale", "2") ); @@ -120,6 +121,9 @@ public final class UserPreferences // Current video backend being used. Falls back to software rendering upon error. String currentVideoBackend = prefs.getString("gpuPref", "Software Rendering"); + // Whether or not FPS will be displayed on-screen. + boolean showingFPS = prefs.getBoolean("showFPS", false); + // Whether or not to draw on-screen controls. boolean drawingOnscreenControls = prefs.getBoolean("drawOnscreenControls", true); @@ -172,6 +176,7 @@ public final class UserPreferences // General Video Settings NativeLibrary.SetConfig("Dolphin.ini", "Core", "GFXBackend", currentVideoBackend); + NativeLibrary.SetConfig("gfx_opengl.ini", "Settings", "ShowFPS", showingFPS ? "True" : "False"); NativeLibrary.SetConfig("Dolphin.ini", "Android", "ScreenControls", drawingOnscreenControls ? "True" : "False"); // Video Hack Settings |
