summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:58:16 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:58:16 -0400
commit89e64a7dbddb8f713dd2ca37131924e8bd8ab51f (patch)
tree8238ddece764ab7757f42c7944236eef74f12f8c /src/api
parente8e469f99078858dc953663cba6f3428e80b1c5d (diff)
downloaddecky-lsfg-vk-89e64a7dbddb8f713dd2ca37131924e8bd8ab51f.tar.gz
decky-lsfg-vk-89e64a7dbddb8f713dd2ca37131924e8bd8ab51f.zip
feat: select Lossless Scaling lsfg-vk branch
Diffstat (limited to 'src/api')
-rw-r--r--src/api/lsfgApi.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts
index 68cf6bf..64d43cb 100644
--- a/src/api/lsfgApi.ts
+++ b/src/api/lsfgApi.ts
@@ -16,6 +16,23 @@ export interface InstallationStatus {
error?: string;
}
+export interface SteamBranchStatus {
+ success: boolean;
+ message: string;
+ error?: string;
+ installed: boolean;
+ manifest_path?: string;
+ selected_branch?: string;
+ current_branch?: string;
+ target_branch: string;
+ needs_switch: boolean;
+ restart_required: boolean;
+}
+
+export interface SteamBranchOperationResult extends SteamBranchStatus {
+ changed: boolean;
+}
+
// Use centralized configuration data type
export type LsfgConfig = ConfigurationData;
@@ -112,6 +129,8 @@ export interface ProfileResult {
export const installLsfgVk = callable<[], InstallationResult>("install_lsfg_vk");
export const uninstallLsfgVk = callable<[], InstallationResult>("uninstall_lsfg_vk");
export const checkLsfgVkInstalled = callable<[], InstallationStatus>("check_lsfg_vk_installed");
+export const getLosslessScalingBranchStatus = callable<[], SteamBranchStatus>("get_lossless_scaling_branch_status");
+export const selectLosslessScalingBranch = callable<[], SteamBranchOperationResult>("select_lossless_scaling_branch");
export const getLsfgConfig = callable<[], ConfigResult>("get_lsfg_config");
export const getConfigSchema = callable<[], ConfigSchemaResult>("get_config_schema");
export const getLaunchOption = callable<[], LaunchOptionResult>("get_launch_option");