v4.5.0.0-rc01.1

Fixed SteamCMD setup progress bar
This commit is contained in:
pointfeev 2023-01-15 15:33:32 -05:00
parent d7f1ee54d7
commit d2ab703b88

View file

@ -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);