mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Allow a list of -manifest ids to match -depot
This commit is contained in:
1 parent
ffd22a52ff
commit
70da480efe
1 file changed
+6
-5
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user