summaryrefslogtreecommitdiff
path: root/shared_config.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-22 12:11:53 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-22 12:11:53 -0400
commitf8139896f2077a95a78a54c818637f78dd102de8 (patch)
tree1ae4b236c66e0160c363c5ab8e7bafb84fb1fdb1 /shared_config.py
parentdfe4c033dd1922a63c8393ab467e9aa58fa757e4 (diff)
downloaddecky-lsfg-vk-f8139896f2077a95a78a54c818637f78dd102de8.tar.gz
decky-lsfg-vk-f8139896f2077a95a78a54c818637f78dd102de8.zip
consolidate toml and script values
Diffstat (limited to 'shared_config.py')
-rw-r--r--shared_config.py49
1 files changed, 38 insertions, 11 deletions
diff --git a/shared_config.py b/shared_config.py
index 518294d..ca9172f 100644
--- a/shared_config.py
+++ b/shared_config.py
@@ -24,77 +24,104 @@ CONFIG_SCHEMA_DEF = {
"name": "dll",
"fieldType": ConfigFieldType.STRING,
"default": "/games/Lossless Scaling/Lossless.dll",
- "description": "specify where Lossless.dll is stored"
+ "description": "specify where Lossless.dll is stored",
+ "location": "toml" # where this field is stored/used
},
"multiplier": {
"name": "multiplier",
"fieldType": ConfigFieldType.INTEGER,
"default": 1,
- "description": "change the fps multiplier"
+ "description": "change the fps multiplier",
+ "location": "toml"
},
"flow_scale": {
"name": "flow_scale",
"fieldType": ConfigFieldType.FLOAT,
"default": 0.8,
- "description": "change the flow scale"
+ "description": "change the flow scale",
+ "location": "toml"
},
"performance_mode": {
"name": "performance_mode",
"fieldType": ConfigFieldType.BOOLEAN,
"default": True,
- "description": "use a lighter model for FG (recommended for most games)"
+ "description": "use a lighter model for FG (recommended for most games)",
+ "location": "toml"
},
"hdr_mode": {
"name": "hdr_mode",
"fieldType": ConfigFieldType.BOOLEAN,
"default": False,
- "description": "enable HDR mode (only for games that support HDR)"
+ "description": "enable HDR mode (only for games that support HDR)",
+ "location": "toml"
},
"experimental_present_mode": {
"name": "experimental_present_mode",
"fieldType": ConfigFieldType.STRING,
"default": "fifo",
- "description": "override Vulkan present mode (may cause crashes)"
+ "description": "override Vulkan present mode (may cause crashes)",
+ "location": "toml"
},
"dxvk_frame_rate": {
"name": "dxvk_frame_rate",
"fieldType": ConfigFieldType.INTEGER,
"default": 0,
- "description": "base framerate cap for DirectX games before frame multiplier"
+ "description": "base framerate cap for DirectX games before frame multiplier",
+ "location": "script" # script-only field
},
"enable_wow64": {
"name": "enable_wow64",
"fieldType": ConfigFieldType.BOOLEAN,
"default": False,
- "description": "enable PROTON_USE_WOW64=1 for 32-bit games (use with ProtonGE to fix crashing)"
+ "description": "enable PROTON_USE_WOW64=1 for 32-bit games (use with ProtonGE to fix crashing)",
+ "location": "script"
},
"disable_steamdeck_mode": {
"name": "disable_steamdeck_mode",
"fieldType": ConfigFieldType.BOOLEAN,
"default": False,
- "description": "disable Steam Deck mode (unlocks hidden settings in some games)"
+ "description": "disable Steam Deck mode (unlocks hidden settings in some games)",
+ "location": "script"
},
"mangohud_workaround": {
"name": "mangohud_workaround",
"fieldType": ConfigFieldType.BOOLEAN,
"default": False,
- "description": "Enables a transparent mangohud overlay, sometimes fixes issues with 2X multiplier in game mode"
+ "description": "Enables a transparent mangohud overlay, sometimes fixes issues with 2X multiplier in game mode",
+ "location": "script"
},
"disable_vkbasalt": {
"name": "disable_vkbasalt",
"fieldType": ConfigFieldType.BOOLEAN,
"default": False,
- "description": "Disables vkBasalt layer which can conflict with LSFG (Reshade, some Decky plugins)"
+ "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"
}
}