From 3e33c99f4cb7820bfcb887347f93c545b2d18848 Mon Sep 17 00:00:00 2001 From: Sean Maas Date: Wed, 17 May 2017 21:22:28 -0400 Subject: [PATCH] Android: Initialize video backend setting on first run --- .../dolphinemu/ui/settings/SettingsFragmentPresenter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsFragmentPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsFragmentPresenter.java index 982b2c1d70..df6262538d 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsFragmentPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/settings/SettingsFragmentPresenter.java @@ -260,6 +260,13 @@ public final class SettingsFragmentPresenter mView.passSettingsToActivity(mSettings); } + if (mSettings.get(SettingsFile.SETTINGS_DOLPHIN).isEmpty()) + { + mSettings.get(SettingsFile.SETTINGS_DOLPHIN).put(SettingsFile.SECTION_CORE, new SettingSection(SettingsFile.SECTION_CORE)); + + mView.passSettingsToActivity(mSettings); + } + sl.add(new SingleChoiceSetting(SettingsFile.KEY_VIDEO_BACKEND_INDEX, SettingsFile.SECTION_CORE, SettingsFile.SETTINGS_DOLPHIN, R.string.video_backend, R.string.video_backend_descrip, R.array.videoBackendEntries, R.array.videoBackendValues, 0, videoBackend)); sl.add(new CheckBoxSetting(SettingsFile.KEY_SHOW_FPS, SettingsFile.SECTION_GFX_SETTINGS, SettingsFile.SETTINGS_GFX, R.string.show_fps, 0, true, showFps));