@@ -5,12 +5,13 @@ import { Paths } from '@shared/Paths';
55import { getFileServerURL } from '@shared/Util' ;
66import { getGameDataFilename } from '@shared/utils/misc' ;
77import _axios from 'axios' ;
8- import { Game , GameLaunchOverride , Playlist , TagFilterGroup } from 'flashpoint-launcher' ;
8+ import { Game , Playlist , TagFilterGroup } from 'flashpoint-launcher' ;
99import * as path from 'node:path' ;
1010import { GameGridItem } from './components/GameGridItem' ;
1111import { GameListItem } from './components/GameListItem' ;
1212import { GameOrderChangeEvent } from './components/GameOrder' ;
1313import { GameDragEventData } from './components/pages/BrowsePage' ;
14+ import { createErrorDialog } from './dialog' ;
1415import { markGameBusy , unmarkGameBusy } from './store/main/slice' ;
1516import { AppDispatch } from './store/store' ;
1617
@@ -358,13 +359,11 @@ export function createDataDownload(blob: Blob, name: string) {
358359 URL . revokeObjectURL ( url ) ;
359360}
360361
361- export async function launchGame ( dispatch : AppDispatch , gameId : string , override : GameLaunchOverride ) {
362+ export async function launchGame ( dispatch : AppDispatch , gameId : string , owner : string ) {
362363 log . debug ( 'Launcher' , 'Launching Game - ' + gameId ) ;
363364 dispatch ( markGameBusy ( gameId ) ) ;
364- await window . Shared . back . request ( BackIn . LAUNCH_GAME , gameId , 'flashpoint-archive' )
365- . catch ( ( error ) => {
366- log . error ( 'Launcher' , `Failed to launch game - ${ gameId } - ERROR: ${ error } ` ) ;
367- } )
365+ await window . Shared . back . request ( BackIn . LAUNCH_GAME , gameId , owner )
366+ . catch ( createErrorDialog )
368367 . finally ( ( ) => {
369368 dispatch ( unmarkGameBusy ( gameId ) ) ;
370369 } ) ;
0 commit comments