diff options
| -rw-r--r-- | py_modules/lsfg_vk/config_schema.py | 12 | ||||
| -rw-r--r-- | py_modules/lsfg_vk/configuration.py | 14 | ||||
| -rw-r--r-- | shared_config.py | 16 | ||||
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 32 |
4 files changed, 5 insertions, 69 deletions
diff --git a/py_modules/lsfg_vk/config_schema.py b/py_modules/lsfg_vk/config_schema.py index eac5a91..6728106 100644 --- a/py_modules/lsfg_vk/config_schema.py +++ b/py_modules/lsfg_vk/config_schema.py @@ -81,8 +81,6 @@ class ConfigurationData(TypedDict): disable_steamdeck_mode: bool mangohud_workaround: bool disable_vkbasalt: bool - foobar_toggle: bool - test_config_only: str class ConfigurationManager: @@ -331,8 +329,6 @@ class ConfigurationManager: script_values["mangohud_workaround"] = value == "1" elif key == "DISABLE_VKBASALT": script_values["disable_vkbasalt"] = value == "1" - elif key == "FOOBAR": - script_values["foobar_toggle"] = value == "1" except (ValueError, KeyError, IndexError) as e: # If parsing fails, log the error and return empty dict (will use defaults) @@ -368,9 +364,7 @@ class ConfigurationManager: enable_wow64: bool = False, disable_steamdeck_mode: bool = False, mangohud_workaround: bool = False, - disable_vkbasalt: bool = False, - foobar_toggle: bool = False, - test_config_only: str = "default_value") -> ConfigurationData: + disable_vkbasalt: bool = False) -> ConfigurationData: """Create configuration from individual arguments""" return cast(ConfigurationData, { "dll": dll, @@ -383,7 +377,5 @@ class ConfigurationManager: "enable_wow64": enable_wow64, "disable_steamdeck_mode": disable_steamdeck_mode, "mangohud_workaround": mangohud_workaround, - "disable_vkbasalt": disable_vkbasalt, - "foobar_toggle": foobar_toggle, - "test_config_only": test_config_only + "disable_vkbasalt": disable_vkbasalt }) diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py index b4c7994..49653ea 100644 --- a/py_modules/lsfg_vk/configuration.py +++ b/py_modules/lsfg_vk/configuration.py @@ -108,9 +108,7 @@ class ConfigurationService(BaseService): enable_wow64: bool = False, disable_steamdeck_mode: bool = False, mangohud_workaround: bool = False, - disable_vkbasalt: bool = False, - foobar_toggle: bool = False, - test_config_only: str = "default_value") -> ConfigurationResponse: + disable_vkbasalt: bool = False) -> ConfigurationResponse: """Update TOML configuration Args: @@ -125,8 +123,6 @@ class ConfigurationService(BaseService): disable_steamdeck_mode: Whether to disable Steam Deck mode mangohud_workaround: Whether to enable MangoHud workaround with transparent overlay disable_vkbasalt: Whether to disable vkBasalt layer - foobar_toggle: Test script-only toggle that exports FOOBAR=1 - test_config_only: Test TOML-only configuration field Returns: ConfigurationResponse with success status @@ -136,7 +132,7 @@ class ConfigurationService(BaseService): config = ConfigurationManager.create_config_from_args( dll, multiplier, flow_scale, performance_mode, hdr_mode, experimental_present_mode, dxvk_frame_rate, enable_wow64, disable_steamdeck_mode, - mangohud_workaround, disable_vkbasalt, foobar_toggle, test_config_only + mangohud_workaround, disable_vkbasalt ) # Generate TOML content using centralized manager @@ -159,8 +155,7 @@ class ConfigurationService(BaseService): f"experimental_present_mode='{experimental_present_mode}', " f"dxvk_frame_rate={dxvk_frame_rate}, " f"enable_wow64={enable_wow64}, disable_steamdeck_mode={disable_steamdeck_mode}, " - f"mangohud_workaround={mangohud_workaround}, disable_vkbasalt={disable_vkbasalt}, " - f"foobar_toggle={foobar_toggle}, test_config_only='{test_config_only}'") + f"mangohud_workaround={mangohud_workaround}, disable_vkbasalt={disable_vkbasalt}") return self._success_response(ConfigurationResponse, "lsfg configuration updated successfully", @@ -273,9 +268,6 @@ class ConfigurationService(BaseService): if config.get("disable_vkbasalt", False): lines.append("export DISABLE_VKBASALT=1") - if config.get("foobar_toggle", False): - lines.append("export FOOBAR=1") - # Add DXVK_FRAME_RATE if dxvk_frame_rate is set dxvk_frame_rate = config.get("dxvk_frame_rate", 0) if dxvk_frame_rate > 0: diff --git a/shared_config.py b/shared_config.py index ca9172f..68c7b82 100644 --- a/shared_config.py +++ b/shared_config.py @@ -106,22 +106,6 @@ CONFIG_SCHEMA_DEF = { "default": False, "description": "Disables vkBasalt layer which can conflict with LSFG (Reshade, some Decky plugins)", "location": "script" - }, - - "foobar_toggle": { - "name": "foobar_toggle", - "fieldType": ConfigFieldType.BOOLEAN, - "default": False, - "description": "Test script-only toggle that exports FOOBAR=1 (for testing purposes)", - "location": "script" - }, - - "test_config_only": { - "name": "test_config_only", - "fieldType": ConfigFieldType.STRING, - "default": "default_value", - "description": "Test TOML-only configuration field (not in script)", - "location": "toml" } } diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index 3f15bac..1c0d2b2 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -182,38 +182,6 @@ export function ConfigurationSection({ onChange={(value) => onConfigChange('disable_vkbasalt', value)} /> </PanelSectionRow> - - <PanelSectionRow> - <ToggleField - label="Foobar Toggle (Test)" - description="Test script-only toggle that exports FOOBAR=1 (for testing purposes)" - checked={config.foobar_toggle} - onChange={(value) => onConfigChange('foobar_toggle', value)} - /> - </PanelSectionRow> - - <PanelSectionRow> - <div> - <div style={{ marginBottom: "8px", fontSize: "14px" }}>Test Config Only Field</div> - <input - type="text" - value={config.test_config_only} - onChange={(e) => onConfigChange('test_config_only', e.target.value)} - placeholder="Enter test value" - style={{ - width: "100%", - padding: "8px", - borderRadius: "4px", - border: "1px solid #4c4c4c", - backgroundColor: "#2d2d2d", - color: "#ffffff" - }} - /> - <div style={{ fontSize: "12px", color: "#999", marginTop: "4px" }}> - Test TOML-only configuration field (not in script) - </div> - </div> - </PanelSectionRow> </> ); } |
