From ca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Thu, 17 Jul 2025 08:49:12 -0400 Subject: reorganize for readability and DRY (#115) * reorganize for readability and DRY * rm backup files * ver bump --- src/api/index.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/api/index.ts (limited to 'src/api') 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"); -- cgit v1.2.3