From e7b89df7432b971b13620e5ed5b428d1b08782d1 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Sat, 27 Apr 2019 14:36:56 -0600 Subject: [PATCH] Skip platform check when an explicit depot id is provided --- DepotDownloader/ContentDownloader.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 95b07580..7cb3e014 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -436,7 +436,7 @@ namespace DepotDownloader if ( depotId != INVALID_DEPOT_ID && id != depotId ) continue; - if ( !Config.DownloadAllPlatforms ) + if ( depotId == INVALID_DEPOT_ID && !Config.DownloadAllPlatforms ) { var depotConfig = depotSection[ "config" ]; if ( depotConfig != KeyValue.Invalid && depotConfig[ "oslist" ] != KeyValue.Invalid && !string.IsNullOrWhiteSpace( depotConfig[ "oslist" ].Value ) ) @@ -458,10 +458,6 @@ namespace DepotDownloader else if ( depotIDs.Count == 0 ) { Console.Write( "Depot {0} not listed for app {1}", depotId, appId ); - if ( !Config.DownloadAllPlatforms ) - { - Console.Write( " or not available on this platform" ); - } Console.WriteLine(); return; }