summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-07-17 08:49:12 -0400
committerGitHub <noreply@github.com>2025-07-17 08:49:12 -0400
commitca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93 (patch)
tree8374652b65877b10bce3ea6e073165a02b6af0ba /src/api
parent74ac6e7b7a18c2ae969b08242a5919f903d294e2 (diff)
downloadDecky-Framegen-ca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93.tar.gz
Decky-Framegen-ca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93.zip
reorganize for readability and DRY (#115)v0.10.1
* reorganize for readability and DRY * rm backup files * ver bump
Diffstat (limited to 'src/api')
-rw-r--r--src/api/index.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/api/index.ts b/src/api/index.ts
new file mode 100644
index 0000000..11e4213
--- /dev/null
+++ b/src/api/index.ts
@@ -0,0 +1,23 @@
+import { callable } from "@decky/api";
+
+export const runInstallFGMod = callable<
+ [],
+ { status: string; message?: string; output?: string }
+>("run_install_fgmod");
+
+export const runUninstallFGMod = callable<
+ [],
+ { status: string; message?: string; output?: string }
+>("run_uninstall_fgmod");
+
+export const checkFGModPath = callable<
+ [],
+ { exists: boolean }
+>("check_fgmod_path");
+
+export const listInstalledGames = callable<
+ [],
+ { status: string; games: { appid: string; name: string }[] }
+>("list_installed_games");
+
+export const logError = callable<[string], void>("log_error");