From 4a4f6cc135e3bae665c8ffe63a4cf46429053079 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 13 Aug 2016 22:57:58 +1000 Subject: [PATCH] Android: Add video backend choice to settings --- .../ui/settings/SettingsAdapter.java | 32 ++++++++++++++++- .../settings/SettingsFragmentPresenter.java | 35 +++++++++++++++++++ .../dolphinemu/utils/SettingsFile.java | 1 + .../app/src/main/res/values/arrays.xml | 14 ++++++++ .../app/src/main/res/values/strings.xml | 2 +- 5 files changed, 82 insertions(+), 2 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsAdapter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsAdapter.java index 182593c2c9..235e43ee63 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsAdapter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsAdapter.java @@ -14,6 +14,7 @@ import org.dolphinemu.dolphinemu.R; import org.dolphinemu.dolphinemu.model.settings.BooleanSetting; import org.dolphinemu.dolphinemu.model.settings.FloatSetting; import org.dolphinemu.dolphinemu.model.settings.IntSetting; +import org.dolphinemu.dolphinemu.model.settings.StringSetting; import org.dolphinemu.dolphinemu.model.settings.view.CheckBoxSetting; import org.dolphinemu.dolphinemu.model.settings.view.SettingsItem; import org.dolphinemu.dolphinemu.model.settings.view.SingleChoiceSetting; @@ -207,7 +208,11 @@ public final class SettingsAdapter extends RecyclerView.Adapter5 + + + OpenGL + Vulkan + Software + Null + + + 0 + 1 + 2 + 3 + + "None" diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index 5ad4e029b3..8b91ea74ac 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -263,7 +263,7 @@ OpenGL ES OpenGL Video Backend - %s + Select the API used for graphics rendering. Show FPS Show the number of frames rendered per second as a measure of emulation speed.