summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-07-18 16:01:47 -0400
committerGitHub <noreply@github.com>2025-07-18 16:01:47 -0400
commit1d296606babfb0ceb02068e852582ade7adc4d98 (patch)
treeb29330427adf1b27487a9d2a4b59942a71f585e3 /src/api
parentfa328306e3393a787d7c4f5855ecc23177eaa480 (diff)
parent3b60286fc360704eb6faeb72edbec602c624bd51 (diff)
downloaddecky-lsfg-vk-1d296606babfb0ceb02068e852582ade7adc4d98.tar.gz
decky-lsfg-vk-1d296606babfb0ceb02068e852582ade7adc4d98.zip
Merge pull request #34 from xXJSONDeruloXx/conf-per-game
implement conf file and real time changes
Diffstat (limited to 'src/api')
-rw-r--r--src/api/lsfgApi.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts
index f7363c1..5d866ef 100644
--- a/src/api/lsfgApi.ts
+++ b/src/api/lsfgApi.ts
@@ -66,6 +66,12 @@ export interface UpdateDownloadResult {
error?: string;
}
+export interface LaunchOptionResult {
+ launch_option: string;
+ instructions: string;
+ explanation: string;
+}
+
// API functions
export const installLsfgVk = callable<[], InstallationResult>("install_lsfg_vk");
export const uninstallLsfgVk = callable<[], InstallationResult>("uninstall_lsfg_vk");
@@ -73,17 +79,18 @@ export const checkLsfgVkInstalled = callable<[], InstallationStatus>("check_lsfg
export const checkLosslessScalingDll = callable<[], DllDetectionResult>("check_lossless_scaling_dll");
export const getLsfgConfig = callable<[], ConfigResult>("get_lsfg_config");
export const getConfigSchema = callable<[], ConfigSchemaResult>("get_config_schema");
+export const getLaunchOption = callable<[], LaunchOptionResult>("get_launch_option");
// Updated config function using centralized configuration
export const updateLsfgConfig = callable<
- [boolean, number, number, boolean, boolean, boolean, boolean, number],
+ [boolean, string, number, number, boolean, boolean, string, number],
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, number, number, boolean, boolean, boolean, boolean, number]);
+ return updateLsfgConfig(...args as [boolean, string, number, number, boolean, boolean, string, number]);
};
// Self-updater API functions