File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ import { commandToArgsArray } from './storeManagers/legendary/library'
67
67
import { searchForExecutableOnPath } from './utils/os/path'
68
68
import { getHpOverlay } from './overlay'
69
69
import { launchingGameShouldOpenOverlay } from './utils/shouldOpenOverlay'
70
+ import { Listing } from '@valist/sdk/dist/typesApi'
70
71
71
72
async function prepareLaunch (
72
73
gameSettings : GameSettings ,
@@ -864,8 +865,13 @@ async function callRunner(
864
865
return currentPromise
865
866
}
866
867
const hpOverlay = await getHpOverlay ( )
867
- const { shouldOpenOverlay, hyperPlayListing } =
868
- await launchingGameShouldOpenOverlay ( gameInfo )
868
+ let shouldOpenOverlay = false
869
+ let hyperPlayListing : Listing | undefined = undefined
870
+ if ( isOnline ( ) ) {
871
+ const shouldLaunchResult = await launchingGameShouldOpenOverlay ( gameInfo )
872
+ shouldOpenOverlay = shouldLaunchResult . shouldOpenOverlay
873
+ hyperPlayListing = shouldLaunchResult . hyperPlayListing
874
+ }
869
875
870
876
let promise = new Promise < ExecResult > ( ( res , rej ) => {
871
877
const child = spawn ( bin , commandParts , {
You can’t perform that action at this time.
0 commit comments