mirror of
https://git.uzuy-edge.org/Uzuy-Edge/Uzuy
synced 2024-11-23 10:29:42 +00:00
feat: Add "Sync Core Speed" option to Phoenix Hacks settings
- Added `CORE_SYNC_SPEED` to the Phoenix Hacks submenu as a toggleable option. - This allows users to enable or disable synchronization of CPU core speed with game rendering. - Updated the settings menu to include relevant title and description for the new setting.
This commit is contained in:
parent
5c661f4064
commit
a5a49d4a45
@ -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)
|
||||
|
@ -177,6 +177,7 @@ private fun addPhoenixHacksSubmenu(sl: ArrayList<SettingsItem>) {
|
||||
|
||||
// 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<SettingsItem>) {
|
||||
private fun addPhoenixHacksSettings(sl: ArrayList<SettingsItem>) {
|
||||
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<SettingsItem>) {
|
||||
descriptionId = R.string.use_multi_core_description
|
||||
)
|
||||
)
|
||||
|
||||
// Add the new settings
|
||||
add(
|
||||
SingleChoiceSetting(
|
||||
|
@ -387,6 +387,9 @@
|
||||
<string name="reset_mapping">Reset mappings</string>
|
||||
<string name="reset_mapping_description">Are you sure that you want to reset all mappings for this controller to default? This cannot be undone.</string>
|
||||
|
||||
<string name="sync_core_speed">Sync Core Speed</string>
|
||||
<string name="sync_core_speed_description">Synchronizes the CPU core speed with the game's maximum rendering speed.</string>
|
||||
|
||||
<!-- Miscellaneous -->
|
||||
<string name="preferences_phoenix_hacks">🐦🔥 Phoenix Hacks</string>
|
||||
<string name="preferences_phoenix_hacks_description">Enable or adjust Phoenix-specific hacks</string>
|
||||
|
Loading…
Reference in New Issue
Block a user