From f54b2f0c026637e21fbbb2c4e621e53009a5bb8e Mon Sep 17 00:00:00 2001 From: kianzzarrin2 Date: Wed, 6 Oct 2021 02:46:49 +0300 Subject: [PATCH] --- LoadOrderMod/Util/CheckSubsUtil.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/LoadOrderMod/Util/CheckSubsUtil.cs b/LoadOrderMod/Util/CheckSubsUtil.cs index 7927812..efe651d 100644 --- a/LoadOrderMod/Util/CheckSubsUtil.cs +++ b/LoadOrderMod/Util/CheckSubsUtil.cs @@ -166,14 +166,12 @@ public class CheckSubsUtil : MonoBehaviour { } public static void ReDownload(IEnumerable ids, FileInfo steam) { - Log.Called(ids, steam); - return; - Assertion.Assert(steam.Exists); - string steamDir = steam.DirectoryName; - string steamExe = steam.Name; - void ExecuteSteam(string args) => Execute(steamDir, steamExe, args).WaitForExit(); try { - Log.Called(ids); + Log.Called(ids, steam); + Assertion.Assert(steam.Exists); + string steamDir = steam.DirectoryName; + string steamExe = steam.Name; + void ExecuteSteam(string args) => Execute(steamDir, steamExe, args).WaitForExit(); ExecuteSteam("steam://open/console"); // so that user can see what is happening. foreach (var id in ids) ExecuteSteam($"+workshop_download_item 255710 {id}");