diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-16 13:54:09 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-16 13:54:09 -0400 |
| commit | 7868396718b13443209e7c5d83a2c96cd7eee31e (patch) | |
| tree | 96e8e172c4484caecca591174a3dea2e5d8da363 /py_modules/lsfg_vk/plugin.py | |
| parent | 41bba67d24241dea18b056734b153270bb230ba1 (diff) | |
| download | decky-lsfg-vk-7868396718b13443209e7c5d83a2c96cd7eee31e.tar.gz decky-lsfg-vk-7868396718b13443209e7c5d83a2c96cd7eee31e.zip | |
centralized configuration system for lsfg-vk params
Diffstat (limited to 'py_modules/lsfg_vk/plugin.py')
| -rw-r--r-- | py_modules/lsfg_vk/plugin.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py index 7dcda4e..b357ee6 100644 --- a/py_modules/lsfg_vk/plugin.py +++ b/py_modules/lsfg_vk/plugin.py @@ -11,6 +11,7 @@ from typing import Dict, Any from .installation import InstallationService from .dll_detection import DllDetectionService from .configuration import ConfigurationService +from .config_schema import ConfigurationManager class Plugin: @@ -72,14 +73,26 @@ class Plugin: """ return self.configuration_service.get_config() + async def get_config_schema(self) -> Dict[str, Any]: + """Get configuration schema information for frontend + + Returns: + Dict with field names, types, and defaults + """ + return { + "field_names": ConfigurationManager.get_field_names(), + "field_types": {name: field_type.value for name, field_type in ConfigurationManager.get_field_types().items()}, + "defaults": ConfigurationManager.get_defaults() + } + async def update_lsfg_config(self, enable_lsfg: bool, multiplier: int, flow_scale: float, hdr: bool, perf_mode: bool, immediate_mode: bool, disable_vkbasalt: bool, frame_cap: int) -> Dict[str, Any]: """Update lsfg script configuration Args: enable_lsfg: Whether to enable LSFG - multiplier: LSFG multiplier value (typically 2-4) - flow_scale: LSFG flow scale value (typically 0.5-2.0) + multiplier: LSFG multiplier value + flow_scale: LSFG flow scale value hdr: Whether to enable HDR perf_mode: Whether to enable performance mode immediate_mode: Whether to enable immediate present mode (disable vsync) |
