summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-18 23:33:42 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-18 23:33:42 -0400
commit2087af2315b14e82117e643c16686e9555aa9d9b (patch)
tree8327aed1081c80dab0cbe92991c7f96292b5a7d7 /src
parenta96d2764f036e2ea8f8625533b2f37b8291eda31 (diff)
downloaddecky-lsfg-vk-2087af2315b14e82117e643c16686e9555aa9d9b.tar.gz
decky-lsfg-vk-2087af2315b14e82117e643c16686e9555aa9d9b.zip
rm circular logic bug with legacy enable bool
Diffstat (limited to 'src')
-rw-r--r--src/api/lsfgApi.ts4
-rw-r--r--src/components/ConfigurationSection.tsx8
-rw-r--r--src/components/UsageInstructions.tsx6
-rw-r--r--src/config/configSchema.ts10
4 files changed, 8 insertions, 20 deletions
diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts
index 5bf2dc2..4c23955 100644
--- a/src/api/lsfgApi.ts
+++ b/src/api/lsfgApi.ts
@@ -92,14 +92,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, 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<ConfigUpdateResult> => {
const args = ConfigurationManager.createArgsFromConfig(config);
- return updateLsfgConfig(...args as [boolean, string, number, number, boolean, boolean, string, number, boolean, boolean]);
+ return updateLsfgConfig(...args as [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 a55395e..00717bc 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -56,10 +56,10 @@ export function ConfigurationSection({
step={1}
notchCount={4}
notchLabels={[
- { notchIndex: 0, label: "OFF" },
- { notchIndex: 1, label: "2X" },
- { notchIndex: 2, label: "3X" },
- { notchIndex: 3, label: "4X" }
+ { notchIndex: 1, label: "OFF" },
+ { notchIndex: 2, label: "2X" },
+ { notchIndex: 3, label: "3X" },
+ { notchIndex: 4, label: "4X" }
]}
onChange={(value) => onConfigChange('multiplier', value)}
/>
diff --git a/src/components/UsageInstructions.tsx b/src/components/UsageInstructions.tsx
index be48a82..5de1fcf 100644
--- a/src/components/UsageInstructions.tsx
+++ b/src/components/UsageInstructions.tsx
@@ -33,10 +33,7 @@ export function UsageInstructions({ config }: UsageInstructionsProps) {
whiteSpace: "pre-wrap"
}}
>
- {config.enable
- ? "Add the launch option below (or use \"Launch Option Clipboard\") to Steam games to activate frame generation."
- : "LSFG is disabled. Enable it above and add the launch option to activate frame generation."
- }
+ Add the launch option below (or use "Launch Option Clipboard") to Steam games to activate frame generation.
</div>
</PanelSectionRow>
@@ -69,7 +66,6 @@ export function UsageInstructions({ config }: UsageInstructionsProps) {
}}
>
{`Current Configuration:
-• Enable: ${config.enable ? "Yes" : "No"}
• DLL Path: ${config.dll}
• Multiplier: ${config.multiplier}x
• Flow Scale: ${Math.round(config.flow_scale * 100)}%
diff --git a/src/config/configSchema.ts b/src/config/configSchema.ts
index 8715057..fa54336 100644
--- a/src/config/configSchema.ts
+++ b/src/config/configSchema.ts
@@ -23,13 +23,6 @@ export interface ConfigField {
// Configuration schema - must match Python CONFIG_SCHEMA
export const CONFIG_SCHEMA: Record<string, ConfigField> = {
- enable: {
- name: "enable",
- fieldType: ConfigFieldType.BOOLEAN,
- default: true,
- description: "enable/disable lsfg on every game"
- },
-
dll: {
name: "dll",
fieldType: ConfigFieldType.STRING,
@@ -40,7 +33,7 @@ export const CONFIG_SCHEMA: Record<string, ConfigField> = {
multiplier: {
name: "multiplier",
fieldType: ConfigFieldType.INTEGER,
- default: 2,
+ default: 1,
description: "change the fps multiplier"
},
@@ -96,7 +89,6 @@ export const CONFIG_SCHEMA: Record<string, ConfigField> = {
// Type-safe configuration data structure
export interface ConfigurationData {
- enable: boolean;
dll: string;
multiplier: number;
flow_scale: number;