summaryrefslogtreecommitdiff
path: root/src/api/index.ts
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-05-19 14:26:39 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-05-19 14:26:39 -0400
commit19e5aefa2f41ebd4389bf27136adacf3e75d3502 (patch)
treec7f2228aa45fd4325a68de6fe6f32864f383791c /src/api/index.ts
parent9e12c11b6189972ea04de454dad5c8554efe657a (diff)
downloadDecky-Framegen-feat/asset-manifest-fsr4-variants.tar.gz
Decky-Framegen-feat/asset-manifest-fsr4-variants.zip
feat: add fsr4 runtime manifestsfeat/asset-manifest-fsr4-variants
Diffstat (limited to 'src/api/index.ts')
-rw-r--r--src/api/index.ts53
1 files changed, 47 insertions, 6 deletions
diff --git a/src/api/index.ts b/src/api/index.ts
index c205a87..b1bf0b8 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -1,8 +1,15 @@
import { callable } from "@decky/api";
export const runInstallFGMod = callable<
- [],
- { status: string; message?: string; output?: string }
+ [selected_default_variant?: string],
+ {
+ status: string;
+ message?: string;
+ output?: string;
+ version?: string;
+ selected_default_variant?: string;
+ selected_default_variant_label?: string;
+ }
>("run_install_fgmod");
export const runUninstallFGMod = callable<
@@ -10,9 +17,27 @@ export const runUninstallFGMod = callable<
{ status: string; message?: string; output?: string }
>("run_uninstall_fgmod");
+export const setDefaultFsr4Variant = callable<
+ [selected_default_variant?: string],
+ {
+ status: string;
+ message?: string;
+ output?: string;
+ version?: string;
+ selected_default_variant?: string;
+ selected_default_variant_label?: string;
+ }
+>("set_default_fsr4_variant");
+
export const checkFGModPath = callable<
[],
- { exists: boolean }
+ {
+ exists: boolean;
+ version?: string | null;
+ selected_fsr4_variant?: string | null;
+ selected_fsr4_variant_label?: string | null;
+ install_manifest_present?: boolean;
+ }
>("check_fgmod_path");
export const listInstalledGames = callable<
@@ -28,8 +53,16 @@ export const getPathDefaults = callable<
>("get_path_defaults");
export const runManualPatch = callable<
- [string, string],
- { status: string; message?: string; output?: string }
+ [string, string, string],
+ {
+ status: string;
+ message?: string;
+ output?: string;
+ fsr4_variant?: string;
+ fsr4_variant_label?: string;
+ fsr4_upscaler_sha256?: string;
+ optiscaler_version?: string | null;
+ }
>("manual_patch_directory");
export const runManualUnpatch = callable<
@@ -49,11 +82,15 @@ export const getGameStatus = callable<
dll_name?: string | null;
target_dir?: string | null;
patched_at?: string | null;
+ optiscaler_version?: string | null;
+ fsr4_variant?: string | null;
+ fsr4_variant_label?: string | null;
+ fsr4_upscaler_sha256?: string | null;
}
>("get_game_status");
export const patchGame = callable<
- [appid: string, dll_name: string, current_launch_options: string],
+ [appid: string, dll_name: string, current_launch_options: string, fsr4_variant: string],
{
status: string;
message?: string;
@@ -63,6 +100,10 @@ export const patchGame = callable<
target_dir?: string;
launch_options?: string;
original_launch_options?: string;
+ optiscaler_version?: string | null;
+ fsr4_variant?: string;
+ fsr4_variant_label?: string;
+ fsr4_upscaler_sha256?: string;
}
>("patch_game");