diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-01-19 15:11:02 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-01-19 15:25:22 +0100 |
commit | b00fbee7bd147f825e35a3de4c0b9aeedadac493 (patch) | |
tree | 06bb70658865f1d73887f1eebead2b30b87c70b8 /src-vue/src/views | |
parent | a6abfbbe553f2df30811803d16a7554b51efd3ae (diff) | |
download | FlightCore-b00fbee7bd147f825e35a3de4c0b9aeedadac493.tar.gz FlightCore-b00fbee7bd147f825e35a3de4c0b9aeedadac493.zip |
refactor: Pass launch options via object
Currently object only has a single member for bypassing all checks.
In the future this would be split up into multiple members for different checks to bypass as well as other options.
Diffstat (limited to 'src-vue/src/views')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index aa586e6e..5e835b3e 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -136,6 +136,7 @@ <script lang="ts"> import { defineComponent } from "vue"; import { invoke } from "@tauri-apps/api"; +import { LaunchOptions } from "../utils/LaunchOptions"; import { TagWrapper } from "../../../src-tauri/bindings/TagWrapper"; import { NorthstarThunderstoreReleaseWrapper } from "../../../src-tauri/bindings/NorthstarThunderstoreReleaseWrapper"; import PullRequestsSelector from "../components/PullRequestsSelector.vue"; @@ -206,7 +207,8 @@ export default defineComponent({ }); }, async launchGameWithoutChecks() { - this.$store.commit('launchGame', true); + let launch_options: LaunchOptions = { no_checks: true }; + this.$store.commit('launchGame', launch_options); }, async launchGameViaSteam() { this.$store.commit('launchGameSteam', true); |