summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-19 13:33:22 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-19 13:33:22 -0400
commitbf042515f4c90b951bcd323eb21a54c8ac8fada2 (patch)
treef3a321ff7d75bb840449a69a5db39a960329b7ce /src/api
parentd1d5223e04a037c4ad08f5d4588ec86204ddda52 (diff)
downloaddecky-lsfg-vk-bf042515f4c90b951bcd323eb21a54c8ac8fada2.tar.gz
decky-lsfg-vk-bf042515f4c90b951bcd323eb21a54c8ac8fada2.zip
add script and conf views to nerd modal
Diffstat (limited to 'src/api')
-rw-r--r--src/api/lsfgApi.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts
index 4c23955..74caa57 100644
--- a/src/api/lsfgApi.ts
+++ b/src/api/lsfgApi.ts
@@ -80,6 +80,13 @@ export interface LaunchOptionResult {
explanation: string;
}
+export interface FileContentResult {
+ success: boolean;
+ content?: string;
+ path?: string;
+ error?: string;
+}
+
// API functions
export const installLsfgVk = callable<[], InstallationResult>("install_lsfg_vk");
export const uninstallLsfgVk = callable<[], InstallationResult>("uninstall_lsfg_vk");
@@ -89,6 +96,8 @@ export const getDllStats = callable<[], DllStatsResult>("get_dll_stats");
export const getLsfgConfig = callable<[], ConfigResult>("get_lsfg_config");
export const getConfigSchema = callable<[], ConfigSchemaResult>("get_config_schema");
export const getLaunchOption = callable<[], LaunchOptionResult>("get_launch_option");
+export const getConfigFileContent = callable<[], FileContentResult>("get_config_file_content");
+export const getLaunchScriptContent = callable<[], FileContentResult>("get_launch_script_content");
// Updated config function using centralized configuration
export const updateLsfgConfig = callable<