aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-02-13 00:53:40 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-02-13 00:53:40 +0100
commitc5336ec53952865af3f624a20a5c650598f2461b (patch)
tree96ce9e1c5e3743a1ebedfa3a9443a28c8ed414ff /src-vue/src/views
parent1005c6551991f96103aee3ecdeb5d0753c56dc48 (diff)
downloadFlightCore-c5336ec53952865af3f624a20a5c650598f2461b.tar.gz
FlightCore-c5336ec53952865af3f624a20a5c650598f2461b.zip
refactor: Re-use binding created from Rust code
Diffstat (limited to 'src-vue/src/views')
-rw-r--r--src-vue/src/views/DeveloperView.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 869de2f8..1df249d3 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -149,7 +149,7 @@
<script lang="ts">
import { defineComponent } from "vue";
import { invoke } from "@tauri-apps/api";
-import { LaunchOptions } from "../utils/LaunchOptions";
+import { NorthstarLaunchOptions } from "../../../src-tauri/bindings/NorthstarLaunchOptions";
import { TagWrapper } from "../../../src-tauri/bindings/TagWrapper";
import { NorthstarThunderstoreReleaseWrapper } from "../../../src-tauri/bindings/NorthstarThunderstoreReleaseWrapper";
import PullRequestsSelector from "../components/PullRequestsSelector.vue";
@@ -221,11 +221,12 @@ export default defineComponent({
});
},
async launchGameWithoutChecks() {
- let launch_options: LaunchOptions = { no_checks: true };
+ let launch_options: NorthstarLaunchOptions = { bypass_checks: true, launch_via_steam: false };
this.$store.commit('launchGame', launch_options);
},
async launchGameViaSteam() {
- this.$store.commit('launchGameSteam', true);
+ let launch_options: NorthstarLaunchOptions = { bypass_checks: false, launch_via_steam: true };
+ this.$store.commit('launchGameSteam', launch_options);
},
async getInstalledMods() {
await invoke("get_installed_mods_and_properties", { gameInstall: this.$store.state.game_install }).then((message) => {