fix(config): use boolean values instead of strings

This commit is contained in:
ReenigneArcher
2025-01-17 17:09:35 -05:00
parent 64544e7960
commit f9ad84a161
2 changed files with 35 additions and 35 deletions

View File

@@ -135,27 +135,27 @@
"sunshine_name": "",
"min_log_level": 2,
"global_prep_cmd": [],
"notify_pre_releases": "disabled",
"notify_pre_releases": false,
},
},
{
id: "input",
name: "Input",
options: {
"controller": "enabled",
"controller": true,
"gamepad": "auto",
"ds4_back_as_touchpad_click": "enabled",
"motion_as_ds4": "enabled",
"touchpad_as_ds4": "enabled",
"ds4_back_as_touchpad_click": true,
"motion_as_ds4": true,
"touchpad_as_ds4": true,
"back_button_timeout": -1,
"keyboard": "enabled",
"keyboard": true,
"key_repeat_delay": 500,
"key_repeat_frequency": 24.9,
"always_send_scancodes": "enabled",
"key_rightalt_to_key_win": "disabled",
"mouse": "enabled",
"high_resolution_scrolling": "enabled",
"native_pen_touch": "enabled",
"always_send_scancodes": true,
"key_rightalt_to_key_win": false,
"mouse": true,
"high_resolution_scrolling": true,
"native_pen_touch": true,
"keybindings": "[0x10,0xA0,0x11,0xA2,0x12,0xA4]", // todo: add this to UI
},
},
@@ -165,7 +165,7 @@
options: {
"audio_sink": "",
"virtual_sink": "",
"install_steam_audio_drivers": "enabled",
"install_steam_audio_drivers": true,
"adapter_name": "",
"output_name": "",
"dd_configuration_option": "verify_only",
@@ -176,7 +176,7 @@
"dd_hdr_option": "auto",
"dd_config_revert_delay": 3000,
"dd_mode_remapping": {"mixed": [], "resolution_only": [], "refresh_rate_only": []},
"dd_wa_hdr_toggle": "disabled",
"dd_wa_hdr_toggle": false,
"min_fps_factor": 1,
},
},
@@ -184,7 +184,7 @@
id: "network",
name: "Network",
options: {
"upnp": "disabled",
"upnp": false,
"address_family": "ipv4",
"port": 47989,
"origin_web_ui_allowed": "lan",
@@ -225,12 +225,12 @@
options: {
"nvenc_preset": 1,
"nvenc_twopass": "quarter_res",
"nvenc_spatial_aq": "disabled",
"nvenc_spatial_aq": false,
"nvenc_vbv_increase": 0,
"nvenc_realtime_hags": "enabled",
"nvenc_latency_over_power": "enabled",
"nvenc_opengl_vulkan_on_dxgi": "enabled",
"nvenc_h264_cavlc": "disabled",
"nvenc_realtime_hags": true,
"nvenc_latency_over_power": true,
"nvenc_opengl_vulkan_on_dxgi": true,
"nvenc_h264_cavlc": false,
},
},
{
@@ -239,7 +239,7 @@
options: {
"qsv_preset": "medium",
"qsv_coder": "auto",
"qsv_slow_hevc": "disabled",
"qsv_slow_hevc": false,
},
},
{
@@ -248,10 +248,10 @@
options: {
"amd_usage": "ultralowlatency",
"amd_rc": "vbr_latency",
"amd_enforce_hrd": "disabled",
"amd_enforce_hrd": false,
"amd_quality": "balanced",
"amd_preanalysis": "disabled",
"amd_vbaq": "enabled",
"amd_preanalysis": false,
"amd_vbaq": true,
"amd_coder": "auto",
},
},
@@ -261,14 +261,14 @@
options: {
"vt_coder": "auto",
"vt_software": "auto",
"vt_realtime": "enabled",
"vt_realtime": true,
},
},
{
id: "vaapi",
name: "VA-API Encoder",
options: {
"vaapi_strict_rc_buffer": "disabled",
"vaapi_strict_rc_buffer": false,
},
},
{

View File

@@ -22,7 +22,7 @@ const config = ref(props.config)
></Checkbox>
<!-- Emulated Gamepad Type -->
<div class="mb-3" v-if="config.controller === 'enabled' && platform !== 'macos'">
<div class="mb-3" v-if="config.controller === true && platform !== 'macos'">
<label for="gamepad" class="form-label">{{ $t('config.gamepad') }}</label>
<select id="gamepad" class="form-select" v-model="config.gamepad">
<option value="auto">{{ $t('_common.auto') }}</option>
@@ -33,7 +33,7 @@ const config = ref(props.config)
<option value="switch">{{ $t("config.gamepad_switch") }}</option>
<option value="xone">{{ $t("config.gamepad_xone") }}</option>
</template>
<template #windows>
<option value="ds4">{{ $t('config.gamepad_ds4') }}</option>
<option value="x360">{{ $t('config.gamepad_x360') }}</option>
@@ -44,7 +44,7 @@ const config = ref(props.config)
</div>
<!-- Additional options based on gamepad type -->
<template v-if="config.controller === 'enabled'">
<template v-if="config.controller === true">
<template v-if="config.gamepad === 'ds4' || (config.gamepad === 'auto' && platform === 'windows')">
<div class="mb-3 accordion">
<div class="accordion-item">
@@ -92,7 +92,7 @@ const config = ref(props.config)
</template>
<!-- Home/Guide Button Emulation Timeout -->
<div class="mb-3" v-if="config.controller === 'enabled'">
<div class="mb-3" v-if="config.controller === true">
<label for="back_button_timeout" class="form-label">{{ $t('config.back_button_timeout') }}</label>
<input type="text" class="form-control" id="back_button_timeout" placeholder="-1"
v-model="config.back_button_timeout" />
@@ -109,7 +109,7 @@ const config = ref(props.config)
></Checkbox>
<!-- Key Repeat Delay-->
<div class="mb-3" v-if="config.keyboard === 'enabled' && platform === 'windows'">
<div class="mb-3" v-if="config.keyboard === true && platform === 'windows'">
<label for="key_repeat_delay" class="form-label">{{ $t('config.key_repeat_delay') }}</label>
<input type="text" class="form-control" id="key_repeat_delay" placeholder="500"
v-model="config.key_repeat_delay" />
@@ -117,7 +117,7 @@ const config = ref(props.config)
</div>
<!-- Key Repeat Frequency-->
<div class="mb-3" v-if="config.keyboard === 'enabled' && platform === 'windows'">
<div class="mb-3" v-if="config.keyboard === true && platform === 'windows'">
<label for="key_repeat_frequency" class="form-label">{{ $t('config.key_repeat_frequency') }}</label>
<input type="text" class="form-control" id="key_repeat_frequency" placeholder="24.9"
v-model="config.key_repeat_frequency" />
@@ -125,7 +125,7 @@ const config = ref(props.config)
</div>
<!-- Always send scancodes -->
<Checkbox v-if="config.keyboard === 'enabled' && platform === 'windows'"
<Checkbox v-if="config.keyboard === true && platform === 'windows'"
class="mb-3"
id="always_send_scancodes"
locale-prefix="config"
@@ -134,7 +134,7 @@ const config = ref(props.config)
></Checkbox>
<!-- Mapping Key AltRight to Key Windows -->
<Checkbox v-if="config.keyboard === 'enabled'"
<Checkbox v-if="config.keyboard === true"
class="mb-3"
id="key_rightalt_to_key_win"
locale-prefix="config"
@@ -152,7 +152,7 @@ const config = ref(props.config)
></Checkbox>
<!-- High resolution scrolling support -->
<Checkbox v-if="config.mouse === 'enabled'"
<Checkbox v-if="config.mouse === true"
class="mb-3"
id="high_resolution_scrolling"
locale-prefix="config"
@@ -161,7 +161,7 @@ const config = ref(props.config)
></Checkbox>
<!-- Native pen/touch support -->
<Checkbox v-if="config.mouse === 'enabled'"
<Checkbox v-if="config.mouse === true"
class="mb-3"
id="native_pen_touch"
locale-prefix="config"