diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-10-21 23:14:12 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-10-21 23:14:12 -0400 |
| commit | 4a6b8d3239e5ee904fa8ceead5cc2ce7707e70d6 (patch) | |
| tree | 680a08e2211095de84682f1ab4a4beac66c11b6b /py_modules | |
| parent | 74b246f30bb6b030ad3cf1a2a993db1204f061c1 (diff) | |
| download | decky-lsfg-vk-4a6b8d3239e5ee904fa8ceead5cc2ce7707e70d6.tar.gz decky-lsfg-vk-4a6b8d3239e5ee904fa8ceead5cc2ce7707e70d6.zip | |
chore: bump ver, add back autogen conf warnings
Diffstat (limited to 'py_modules')
| -rw-r--r-- | py_modules/lsfg_vk/config_schema_generated.py | 4 | ||||
| -rw-r--r-- | py_modules/lsfg_vk/configuration.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/py_modules/lsfg_vk/config_schema_generated.py b/py_modules/lsfg_vk/config_schema_generated.py index 3aa5f68..53e9693 100644 --- a/py_modules/lsfg_vk/config_schema_generated.py +++ b/py_modules/lsfg_vk/config_schema_generated.py @@ -8,9 +8,11 @@ from enum import Enum import sys from pathlib import Path +# Import shared configuration constants sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from shared_config import CONFIG_SCHEMA_DEF, ConfigFieldType +# Field name constants for type-safe access DLL = "dll" NO_FP16 = "no_fp16" MULTIPLIER = "multiplier" @@ -61,6 +63,7 @@ def get_script_parsing_logic(): key = key.strip() value = value.strip() + # Auto-generated parsing logic: if key == "DXVK_FRAME_RATE": try: script_values["dxvk_frame_rate"] = int(value) @@ -159,6 +162,7 @@ def create_config_dict(**kwargs) -> ConfigurationData: }) +# Field lists for dynamic operations TOML_FIELDS = ['dll', 'no_fp16', 'multiplier', 'flow_scale', 'performance_mode', 'hdr_mode', 'experimental_present_mode'] SCRIPT_FIELDS = ['dxvk_frame_rate', 'enable_wow64', 'disable_steamdeck_mode', 'mangohud_workaround', 'disable_vkbasalt', 'force_enable_vkbasalt', 'enable_wsi', 'enable_zink'] ALL_FIELDS = ['dll', 'no_fp16', 'multiplier', 'flow_scale', 'performance_mode', 'hdr_mode', 'experimental_present_mode', 'dxvk_frame_rate', 'enable_wow64', 'disable_steamdeck_mode', 'mangohud_workaround', 'disable_vkbasalt', 'force_enable_vkbasalt', 'enable_wsi', 'enable_zink'] diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py index 332d4ef..8d3c034 100644 --- a/py_modules/lsfg_vk/configuration.py +++ b/py_modules/lsfg_vk/configuration.py @@ -140,6 +140,8 @@ class ConfigurationService(BaseService): """ lines = [ "#!/bin/bash", + "# lsfg-vk launch script generated by decky-lossless-scaling-vk plugin", + "# This script sets up the environment for lsfg-vk to work with the plugin configuration", ] generate_script_lines = get_script_generation_logic() @@ -388,7 +390,7 @@ class ConfigurationService(BaseService): f"Profile '{profile_name}' does not exist", config=None) - new_profile_data = ConfigurationManager.update_profile_config(profile_data, profile_name, config) + profile_data = ConfigurationManager.update_profile_config(profile_data, profile_name, config) for field_name in ["dll", "no_fp16"]: if field_name in config: |
