aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-29 22:21:45 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-29 22:21:45 +0200
commit975c9ffbbed337ce40f6922c86249225ab779075 (patch)
tree782268ddb69e58d1d6a4f00e6e524ea85d6602a9 /src-ui/src
parent17fb443a3dd8a71180a9081dbab64af95c53af26 (diff)
downloadFlightCore-975c9ffbbed337ce40f6922c86249225ab779075.tar.gz
FlightCore-975c9ffbbed337ce40f6922c86249225ab779075.zip
Check installed Northstar version
Diffstat (limited to 'src-ui/src')
-rw-r--r--src-ui/src/main.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index eccd1919..127aa119 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -62,6 +62,15 @@ document.addEventListener("DOMContentLoaded", async function () {
omniButtonEl.textContent = "Install";
installLocationHolderEl.textContent = install_location;
globalState.gamepath = install_location;
+
+ // Check installed Northstar version if found
+ let northstar_version_number = await invoke("get_northstar_version_number_caller") as string;
+ if (northstar_version_number && northstar_version_number.length > 0) {
+ globalState.installed_northstar_version = northstar_version_number;
+ omniButtonEl.textContent = "Play"
+ // TODO check if version is newest
+ }
+ console.log(globalState);
}
else {
omniButtonEl.textContent = "Find Titanfall2 install location";