Skip to content

Commit 6252027

Browse files
authored
fix: pass skip-version-check only for legendary (#2157)
1 parent 9c4dafc commit 6252027

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/legendary/games.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import {
2828
installed,
2929
configStore,
3030
isLinux,
31-
isFlatpak
31+
isFlatpak,
32+
isCLINoGui
3233
} from '../constants'
3334
import { logError, logInfo, LogPrefix } from '../logger/logger'
3435
import {
@@ -773,6 +774,7 @@ class LegendaryGame extends Game {
773774
...offlineFlag,
774775
...wineFlag,
775776
...shlex.split(launchArguments ?? ''),
777+
isCLINoGui ? '--skip-version-check' : '',
776778
...shlex.split(gameSettings.launcherArgs ?? '')
777779
]
778780
const wrappers = setupWrappers(

src/backend/main.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,6 @@ let powerDisplayId: number | null
10151015
ipcMain.handle(
10161016
'launch',
10171017
async (event, { appName, launchArguments, runner }): StatusPromise => {
1018-
launchArguments = isCLINoGui ? '--skip-version-check' : launchArguments
1019-
10201018
const window = BrowserWindow.getAllWindows()[0]
10211019
const isSideloaded = runner === 'sideload'
10221020
const extGame = getGame(appName, runner)

0 commit comments

Comments
 (0)