aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-07-30 02:11:28 +0200
committerGitHub <noreply@github.com>2023-07-30 02:11:28 +0200
commit14fdc631291a117b8a137b6fbbebfe3dea3a8697 (patch)
treebfe550ad295194dc0de779080a4e495dcf683161 /src-vue/src/plugins
parent40520344778a98c45817e9cbc00caab6ec3ea6bf (diff)
downloadFlightCore-14fdc631291a117b8a137b6fbbebfe3dea3a8697.tar.gz
FlightCore-14fdc631291a117b8a137b6fbbebfe3dea3a8697.zip
refactor: Replace naive `game_path` argument with `GameInstall` (#454)
We should always pass the whole object instead of just a field for easier expandability in the future Co-authored-by: Jan200101 <sentrycraft123@gmail.com>
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 2991ad1d..aee8bbce 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -465,13 +465,13 @@ function _initializeListeners(state: any) {
* state, for it to be displayed in UI.
*/
async function _get_northstar_version_number(state: any) {
- await invoke("get_northstar_version_number", { gamePath: state.game_install.game_path })
+ await invoke("get_northstar_version_number", { gameInstall: state.game_install })
.then((message) => {
let northstar_version_number: string = message as string;
state.installed_northstar_version = northstar_version_number;
state.northstar_state = NorthstarState.READY_TO_PLAY;
- invoke("check_is_northstar_outdated", { gamePath: state.game_install.game_path, northstarPackageName: state.northstar_release_canal })
+ invoke("check_is_northstar_outdated", { gameInstall: state.game_install, northstarPackageName: state.northstar_release_canal })
.then((message) => {
if (message) {
state.northstar_state = NorthstarState.MUST_UPDATE;