From d2ab703b88b5e1011fb853bef8474c91c60153b6 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Sun, 15 Jan 2023 15:33:32 -0500 Subject: [PATCH] v4.5.0.0-rc01.1 Fixed SteamCMD setup progress bar --- CreamInstaller/Platforms/Steam/SteamCMD.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CreamInstaller/Platforms/Steam/SteamCMD.cs b/CreamInstaller/Platforms/Steam/SteamCMD.cs index 2091649..ece31b9 100644 --- a/CreamInstaller/Platforms/Steam/SteamCMD.cs +++ b/CreamInstaller/Platforms/Steam/SteamCMD.cs @@ -69,8 +69,6 @@ internal static class SteamCMD StandardInputEncoding = Encoding.UTF8, StandardOutputEncoding = Encoding.UTF8, StandardErrorEncoding = Encoding.UTF8 }; Process process = Process.Start(processStartInfo); - if (appId == null) - return ""; StringBuilder output = new(); StringBuilder appInfo = new(); bool appInfoStarted = false; @@ -98,7 +96,7 @@ internal static class SteamCMD continue; process.Kill(true); process.Close(); - if (output.ToString().Contains($"No app info for AppID {appId} found, requesting...")) + if (appId != null && output.ToString().Contains($"No app info for AppID {appId} found, requesting...")) { AttemptCount[appId]++; processStartInfo.Arguments = GetArguments(appId);