File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { invoke } from "@tauri-apps/api";
66import { GameInstall } from "../utils/GameInstall" ;
77import { ReleaseCanal } from "../utils/ReleaseCanal" ;
88import { FlightCoreVersion } from "../../../src-tauri/bindings/FlightCoreVersion" ;
9+ import { LaunchOptions } from "../utils/LaunchOptions" ;
910import { NotificationHandle } from 'element-plus' ;
1011import { NorthstarState } from '../utils/NorthstarState' ;
1112import { appDir } from '@tauri-apps/api/path' ;
@@ -172,7 +173,13 @@ export const store = createStore<FlightCoreStore>({
172173 }
173174 }
174175 } ,
175- async launchGame ( state : any , no_checks = false ) {
176+ async launchGame ( state : any , launch_options : LaunchOptions | null = null ) {
177+ let no_checks = false ;
178+
179+ if ( launch_options != null ) {
180+ no_checks = launch_options . no_checks ;
181+ }
182+
176183 if ( no_checks ) {
177184 await invoke ( "launch_northstar" , { gameInstall : state . game_install , bypassChecks : no_checks } )
178185 . then ( ( message ) => {
Original file line number Diff line number Diff line change 1+ export interface LaunchOptions {
2+ no_checks : boolean ,
3+ }
Original file line number Diff line number Diff line change 136136<script lang="ts">
137137import { defineComponent } from " vue" ;
138138import { invoke } from " @tauri-apps/api" ;
139+ import { LaunchOptions } from " ../utils/LaunchOptions" ;
139140import { TagWrapper } from " ../../../src-tauri/bindings/TagWrapper" ;
140141import { NorthstarThunderstoreReleaseWrapper } from " ../../../src-tauri/bindings/NorthstarThunderstoreReleaseWrapper" ;
141142import PullRequestsSelector from " ../components/PullRequestsSelector.vue" ;
@@ -206,7 +207,8 @@ export default defineComponent({
206207 });
207208 },
208209 async launchGameWithoutChecks() {
209- this .$store .commit (' launchGame' , true );
210+ let launch_options: LaunchOptions = { no_checks: true };
211+ this .$store .commit (' launchGame' , launch_options );
210212 },
211213 async launchGameViaSteam() {
212214 this .$store .commit (' launchGameSteam' , true );
You can’t perform that action at this time.
0 commit comments