mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Fix regressions causing exception in oslist check and permission error where depot id is app id.
This commit is contained in:
1 parent
6a81bebd1a
commit
aba445afa3
1 file changed
+3
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user