From aba445afa393f5d15a59248679f7df6479d4aef2 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 8 Sep 2013 13:53:48 -0400 Subject: [PATCH] Fix regressions causing exception in oslist check and permission error where depot id is app id. --- DepotDownloader/ContentDownloader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 238b1905..0c459067 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -341,9 +341,9 @@ namespace DepotDownloader if (!Config.DownloadAllPlatforms) { var depotConfig = depotSection["config"]; - if (depotConfig != KeyValue.Invalid && depotConfig["oslist"] != KeyValue.Invalid) + if (depotConfig != KeyValue.Invalid && depotConfig["oslist"] != KeyValue.Invalid && !string.IsNullOrWhiteSpace(depotConfig["oslist"].Value)) { - var oslist = depotSection["oslist"].Value.Split(','); + var oslist = depotConfig["oslist"].Value.Split(','); if (Array.IndexOf(oslist, Util.GetSteamOS()) == -1) continue; } @@ -386,7 +386,7 @@ namespace DepotDownloader string contentName = GetAppOrDepotName(depotId, appId); - if (!AccountHasAccess(depotId, false)) + if (!AccountHasAccess(depotId, appId == depotId)) { Console.WriteLine("Depot {0} ({1}) is not available from this account.", depotId, contentName);