summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-04-19 12:12:15 -0400
committerGitHub <noreply@github.com>2026-04-19 12:12:15 -0400
commit9e096ef3e8ca4564f5c77f456fea346a3f28952e (patch)
tree4e47f02b4cc62e684dc583aed0f516d33d220212 /src/api
parent47e7e2610b44809e13bea6bad7f1345fe6f58fa3 (diff)
parent7fb070e9f46ac3cdf34f473d31b29aef83722d22 (diff)
downloadDecky-Framegen-9e096ef3e8ca4564f5c77f456fea346a3f28952e.tar.gz
Decky-Framegen-9e096ef3e8ca4564f5c77f456fea346a3f28952e.zip
Merge pull request #191 from xXJSONDeruloXx/feat/appid-patch-flow
feat: AppID-based patch/unpatch with multi-library Steam discovery and marker tracking
Diffstat (limited to 'src/api')
-rw-r--r--src/api/index.ts42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/api/index.ts b/src/api/index.ts
index 226f29f..c205a87 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -17,7 +17,7 @@ export const checkFGModPath = callable<
export const listInstalledGames = callable<
[],
- { status: string; games: { appid: string; name: string }[] }
+ { status: string; message?: string; games: { appid: string; name: string; install_found?: boolean }[] }
>("list_installed_games");
export const logError = callable<[string], void>("log_error");
@@ -36,3 +36,43 @@ export const runManualUnpatch = callable<
[string],
{ status: string; message?: string; output?: string }
>("manual_unpatch_directory");
+
+export const getGameStatus = callable<
+ [appid: string],
+ {
+ status: string;
+ message?: string;
+ appid?: string;
+ name?: string;
+ install_found?: boolean;
+ patched?: boolean;
+ dll_name?: string | null;
+ target_dir?: string | null;
+ patched_at?: string | null;
+ }
+>("get_game_status");
+
+export const patchGame = callable<
+ [appid: string, dll_name: string, current_launch_options: string],
+ {
+ status: string;
+ message?: string;
+ appid?: string;
+ name?: string;
+ dll_name?: string;
+ target_dir?: string;
+ launch_options?: string;
+ original_launch_options?: string;
+ }
+>("patch_game");
+
+export const unpatchGame = callable<
+ [appid: string],
+ {
+ status: string;
+ message?: string;
+ appid?: string;
+ name?: string;
+ launch_options?: string;
+ }
+>("unpatch_game");