aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-02-21 23:21:04 +0100
committerGitHub <noreply@github.com>2024-02-21 23:21:04 +0100
commit5a6dd6209d669a31b0f97c4fda5ef21187ea6b47 (patch)
tree3e622c3c191130f9ecb47c514a4dba7fd32110fb /src-vue/src/views/DeveloperView.vue
parent573d8c90e5de42c310c757aebcc6668800ca4396 (diff)
downloadFlightCore-5a6dd6209d669a31b0f97c4fda5ef21187ea6b47.tar.gz
FlightCore-5a6dd6209d669a31b0f97c4fda5ef21187ea6b47.zip
refactor: Pass launch options via object (#760)
Use the existing defined interface to pass an object to store instead of just a boolean value. Allows for further extending in the future.
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 975ec077..f3847d36 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -149,6 +149,7 @@
<script lang="ts">
import { defineComponent } from "vue";
import { invoke } from "@tauri-apps/api";
+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";
@@ -220,10 +221,12 @@ export default defineComponent({
});
},
async launchGameWithoutChecks() {
- this.$store.commit('launchGame', 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) => {