From bc0c8ead3f120402ada48780d1be42259384e0f4 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Thu, 22 Sep 2022 17:08:25 +0200 Subject: Add initial functionality to get NS log files --- src-ui/src/main.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src-ui/src') diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index dd28fedc..0505f0c2 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -301,4 +301,20 @@ document.addEventListener("DOMContentLoaded", async function () { alert(error); omniButtonEl.textContent = button_manual_find_string; }); + + + // --- This should be moved and is only placed here temporarily ----- + let game_install = { + game_path: globalState.gamepath, + install_type: installTypeHolderEl.textContent + } as GameInstall; + await invoke("get_log_list_caller", { gameInstall: game_install }) + .then((message) => { + console.log(message); + }) + .catch((error) => { + console.error(error); + }); + // ------------------------------------------------------------------ + }) -- cgit v1.2.3