Skip to content

Commit

Permalink
[Fix] Pass --skip-sdl when updating/repairing Epic games (#3535)
Browse files Browse the repository at this point in the history
Pass `--skip-sdl` when updating/repairing Epic games

If we're updating/repairing a game with SDL that was either synced from
EGS or imported (or is missing SDL tags for some other reason), the
command will get stuck waiting for the user to choose these tags.

Passing `--skip-sdl` resolves this issue. It'll always set the "default"
tags, which might not be the user's choice, but it's better than getting
stuck like this.
  • Loading branch information
CommandMC authored Feb 8, 2024
1 parent c669900 commit 484d4cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/storeManagers/legendary/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ export async function update(
const command: LegendaryCommand = {
subcommand: 'update',
appName: LegendaryAppName.parse(appName),
'-y': true
'-y': true,
'--skip-sdl': true
}
if (maxWorkers) command['--max-workers'] = PositiveInteger.parse(maxWorkers)
if (downloadNoHttps) command['--no-https'] = true
Expand Down Expand Up @@ -669,7 +670,8 @@ export async function repair(appName: string): Promise<ExecResult> {
const command: LegendaryCommand = {
subcommand: 'repair',
appName: LegendaryAppName.parse(appName),
'-y': true
'-y': true,
'--skip-sdl': true
}
if (maxWorkers) command['--max-workers'] = PositiveInteger.parse(maxWorkers)
if (downloadNoHttps) command['--no-https'] = true
Expand Down

0 comments on commit 484d4cb

Please sign in to comment.