Skip platform check when an explicit depot id is provided

This commit is contained in:
Ryan Kistner committed 2019-04-27 14:36:56 -06:00
1 parent 2177746a50
commit e7b89df743
1 file changed
+1 -5
+1 -5
View File
@@ -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;
}