From 484d4cb3aa3f42b19d1c4a9ca4b9f0146585bb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Dr=C3=B6ge?= Date: Thu, 8 Feb 2024 02:46:04 +0100 Subject: [PATCH] [Fix] Pass `--skip-sdl` when updating/repairing Epic games (#3535) 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. --- src/backend/storeManagers/legendary/games.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/storeManagers/legendary/games.ts b/src/backend/storeManagers/legendary/games.ts index 074f2bdd83..06e7ff2cdd 100644 --- a/src/backend/storeManagers/legendary/games.ts +++ b/src/backend/storeManagers/legendary/games.ts @@ -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 @@ -669,7 +670,8 @@ export async function repair(appName: string): Promise { 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