From 748351384705323a87f7ebc388a3ab858b9ac62f Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Fri, 18 Jul 2025 16:24:43 -0400 Subject: initial env var additions --- src/api/lsfgApi.ts | 4 ++-- src/components/ConfigurationSection.tsx | 34 +++++++++++++++++++++++++++++++++ src/config/configSchema.ts | 16 ++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts index 5d866ef..5770c43 100644 --- a/src/api/lsfgApi.ts +++ b/src/api/lsfgApi.ts @@ -83,14 +83,14 @@ export const getLaunchOption = callable<[], LaunchOptionResult>("get_launch_opti // Updated config function using centralized configuration export const updateLsfgConfig = callable< - [boolean, string, number, number, boolean, boolean, string, number], + [boolean, string, number, number, boolean, boolean, string, number, boolean, boolean], ConfigUpdateResult >("update_lsfg_config"); // Helper function to create config update from configuration object export const updateLsfgConfigFromObject = async (config: ConfigurationData): Promise => { const args = ConfigurationManager.createArgsFromConfig(config); - return updateLsfgConfig(...args as [boolean, string, number, number, boolean, boolean, string, number]); + return updateLsfgConfig(...args as [boolean, string, number, number, boolean, boolean, string, number, boolean, boolean]); }; // Self-updater API functions diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index dc8da89..1748839 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -94,6 +94,40 @@ export function ConfigurationSection({ /> + +
+ Environment Variables +
+
+ + + onConfigChange('enable_wow64', value)} + /> + + + + onConfigChange('disable_steamdeck_mode', value)} + /> + +
= { fieldType: ConfigFieldType.INTEGER, default: 0, description: "experimental: base framerate cap for dxvk games, before frame multiplier (0 = disabled)" + }, + + 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)" + }, + + disable_steamdeck_mode: { + name: "disable_steamdeck_mode", + fieldType: ConfigFieldType.BOOLEAN, + default: false, + description: "disable Steam Deck mode (unlocks hidden settings in some games)" } }; @@ -90,6 +104,8 @@ export interface ConfigurationData { hdr_mode: boolean; experimental_present_mode: string; experimental_fps_limit: number; + enable_wow64: boolean; + disable_steamdeck_mode: boolean; } // Centralized configuration manager -- cgit v1.2.3