diff --git a/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/model/BooleanSetting.kt b/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/model/BooleanSetting.kt index 11ea16074..fc81269e4 100644 --- a/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/model/BooleanSetting.kt +++ b/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/model/BooleanSetting.kt @@ -27,7 +27,8 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting { SHOW_INPUT_OVERLAY("show_input_overlay"), TOUCHSCREEN("touchscreen"), SHOW_THERMAL_OVERLAY("show_thermal_overlay"), - CORE_USE_MULTI_CORE("use_multi_core"); + CORE_USE_MULTI_CORE("use_multi_core"), + CORE_SYNC_SPEED("core_sync_speed"); override fun getBoolean(needsGlobal: Boolean): Boolean = NativeConfig.getBoolean(key, needsGlobal) diff --git a/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/ui/SettingsFragmentPresenter.kt index e8098229a..a0163d96f 100644 --- a/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/ui/SettingsFragmentPresenter.kt +++ b/src/android/app/src/main/java/org/uzuy/uzuy_emu/features/settings/ui/SettingsFragmentPresenter.kt @@ -177,6 +177,7 @@ private fun addPhoenixHacksSubmenu(sl: ArrayList) { // Add settings using keys directly add(BooleanSetting.CORE_USE_MULTI_CORE.key) + add(BooleanSetting.CORE_SYNC_SPEED.key) add(IntSetting.RENDERER_SHADER_BACKEND.key) add(IntSetting.RENDERER_NVDEC_EMULATION.key) add(IntSetting.RENDERER_ASTC_DECODE_METHOD.key) @@ -207,6 +208,13 @@ private fun addPhoenixHacksSubmenu(sl: ArrayList) { private fun addPhoenixHacksSettings(sl: ArrayList) { sl.apply { // Add the multi-core setting to Phoenix Hacks submenu + add( + SwitchSetting( + BooleanSetting.CORE_SYNC_SPEED, + titleId = R.string.sync_core_speed, + descriptionId = R.string.sync_core_speed_description + ) + ) add( SwitchSetting( useMultiCoreSetting, @@ -214,7 +222,6 @@ private fun addPhoenixHacksSettings(sl: ArrayList) { descriptionId = R.string.use_multi_core_description ) ) - // Add the new settings add( SingleChoiceSetting( diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml index 4b9967b53..877767199 100644 --- a/src/android/app/src/main/res/values/strings.xml +++ b/src/android/app/src/main/res/values/strings.xml @@ -387,6 +387,9 @@ Reset mappings Are you sure that you want to reset all mappings for this controller to default? This cannot be undone. + Sync Core Speed + Synchronizes the CPU core speed with the game's maximum rendering speed. + 🐦‍🔥 Phoenix Hacks Enable or adjust Phoenix-specific hacks