Allow a list of -manifest ids to match -depot

pull/151/head DepotDownloader_2.4.0
Ryan Kistner 5 years ago
parent ffd22a52ff
commit 70da480efe

@ -228,16 +228,17 @@ namespace DepotDownloader
bool isUGC = false;
List<uint> depotIdList = GetParameterList<uint>( args, "-depot" );
ulong manifestId = GetParameter<ulong>( args, "-manifest", ContentDownloader.INVALID_MANIFEST_ID );
if ( manifestId != ContentDownloader.INVALID_MANIFEST_ID )
List<ulong> manifestIdList = GetParameterList<ulong>( args, "-manifest" );
if ( manifestIdList.Count > 0 )
{
if ( depotIdList.Count != 1 )
if ( depotIdList.Count != manifestIdList.Count )
{
Console.WriteLine( "Error: -manifest requires one -depot to be specified" );
Console.WriteLine( "Error: -manifest requires one id for every -depot specified" );
return 1;
}
depotManifestIds.Add( ( depotIdList[0], manifestId ) );
var zippedDepotManifest = depotIdList.Zip( manifestIdList, ( depotId, manifestId ) => ( depotId, manifestId ) );
depotManifestIds.AddRange( zippedDepotManifest );
}
else
{

Loading…
Cancel
Save