From d0941342d28bb85520cecb14b5c3f6f3861e878d Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Fri, 3 Feb 2023 17:20:28 -0500 Subject: [PATCH] Android: Expose Emulate Disc Speed --- .../dolphinemu/features/settings/model/BooleanSetting.java | 2 ++ .../features/settings/ui/SettingsFragmentPresenter.java | 5 +++++ Source/Android/app/src/main/res/values/strings.xml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/model/BooleanSetting.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/model/BooleanSetting.java index 76925a1429..1194e1f56a 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/model/BooleanSetting.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/model/BooleanSetting.java @@ -43,6 +43,8 @@ public enum BooleanSetting implements AbstractBooleanSetting MAIN_ACCURATE_CPU_CACHE(Settings.FILE_DOLPHIN, Settings.SECTION_INI_CORE, "AccurateCPUCache", false), MAIN_SYNC_GPU(Settings.FILE_DOLPHIN, Settings.SECTION_INI_CORE, "SyncGPU", false), + MAIN_FAST_DISC_SPEED(Settings.FILE_DOLPHIN, Settings.SECTION_INI_CORE, "FastDiscSpeed", + false), MAIN_OVERCLOCK_ENABLE(Settings.FILE_DOLPHIN, Settings.SECTION_INI_CORE, "OverclockEnable", false), MAIN_RAM_OVERRIDE_ENABLE(Settings.FILE_DOLPHIN, Settings.SECTION_INI_CORE, "RAMOverrideEnable", false), diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java index ada1e0e000..3604d53087 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java @@ -765,6 +765,11 @@ public final class SettingsFragmentPresenter R.string.custom_rtc_enable, R.string.custom_rtc_description)); sl.add(new DateTimeChoiceSetting(mContext, StringSetting.MAIN_CUSTOM_RTC_VALUE, R.string.set_custom_rtc, 0)); + + sl.add(new HeaderSetting(mContext, R.string.misc_settings, 0)); + sl.add(new InvertedSwitchSetting(mContext, BooleanSetting.MAIN_FAST_DISC_SPEED, + R.string.emulate_disc_speed, + R.string.emulate_disc_speed_description)); } private void addSerialPortSubSettings(ArrayList sl, int serialPort1Type) diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index 5f2e398fae..cd04ef59be 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -416,6 +416,9 @@ Set Custom RTC Select RTC Date Select RTC Time + Misc Settings + Emulate Disc Speed + Enable emulated disc speed. Disabling this can cause crashes and other problems in some games. Log