mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-02-04 05:31:18 +01:00
Merge pull request #501 from giacomopc/master
-all-archs: Allow to download all archs
This commit is contained in:
@@ -476,7 +476,8 @@ namespace DepotDownloader
|
||||
continue;
|
||||
}
|
||||
|
||||
if (depotConfig["osarch"] != KeyValue.Invalid &&
|
||||
if (!Config.DownloadAllArchs &&
|
||||
depotConfig["osarch"] != KeyValue.Invalid &&
|
||||
!string.IsNullOrWhiteSpace(depotConfig["osarch"].Value))
|
||||
{
|
||||
var depotArch = depotConfig["osarch"].Value;
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace DepotDownloader
|
||||
{
|
||||
public int CellID { get; set; }
|
||||
public bool DownloadAllPlatforms { get; set; }
|
||||
public bool DownloadAllArchs { get; set; }
|
||||
public bool DownloadAllLanguages { get; set; }
|
||||
public bool DownloadManifestOnly { get; set; }
|
||||
public string InstallDirectory { get; set; }
|
||||
|
||||
@@ -211,6 +211,7 @@ namespace DepotDownloader
|
||||
ContentDownloader.Config.BetaPassword = GetParameter<string>(args, "-betapassword");
|
||||
|
||||
ContentDownloader.Config.DownloadAllPlatforms = HasParameter(args, "-all-platforms");
|
||||
|
||||
var os = GetParameter<string>(args, "-os");
|
||||
|
||||
if (ContentDownloader.Config.DownloadAllPlatforms && !string.IsNullOrEmpty(os))
|
||||
@@ -219,8 +220,16 @@ namespace DepotDownloader
|
||||
return 1;
|
||||
}
|
||||
|
||||
ContentDownloader.Config.DownloadAllArchs = HasParameter(args, "-all-archs");
|
||||
|
||||
var arch = GetParameter<string>(args, "-osarch");
|
||||
|
||||
if (ContentDownloader.Config.DownloadAllArchs && !string.IsNullOrEmpty(arch))
|
||||
{
|
||||
Console.WriteLine("Error: Cannot specify -osarch when -all-archs is specified.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
ContentDownloader.Config.DownloadAllLanguages = HasParameter(args, "-all-languages");
|
||||
var language = GetParameter<string>(args, "-language");
|
||||
|
||||
@@ -401,6 +410,7 @@ namespace DepotDownloader
|
||||
Console.WriteLine($" -beta <branchname> - download from specified branch if available (default: {ContentDownloader.DEFAULT_BRANCH}).");
|
||||
Console.WriteLine(" -betapassword <pass> - branch password if applicable.");
|
||||
Console.WriteLine(" -all-platforms - downloads all platform-specific depots when -app is used.");
|
||||
Console.WriteLine(" -all-archs - download all architecture-specific depots when -app is used.");
|
||||
Console.WriteLine(" -os <os> - the operating system for which to download the game (windows, macos or linux, default: OS the program is currently running on)");
|
||||
Console.WriteLine(" -osarch <arch> - the architecture for which to download the game (32 or 64, default: the host's architecture)");
|
||||
Console.WriteLine(" -all-languages - download all language-specific depots when -app is used.");
|
||||
|
||||
@@ -72,6 +72,7 @@ Parameter | Description
|
||||
`-all-platforms` | downloads all platform-specific depots when `-app` is used.
|
||||
`-os <os>` | the operating system for which to download the game (windows, macos or linux, default: OS the program is currently running on)
|
||||
`-osarch <arch>` | the architecture for which to download the game (32 or 64, default: the host's architecture)
|
||||
`-all-archs` | download all architecture-specific depots when `-app` is used.
|
||||
`-all-languages` | download all language-specific depots when `-app` is used.
|
||||
`-language <lang>` | the language for which to download the game (default: english)
|
||||
`-lowviolence` | download low violence depots when `-app` is used.
|
||||
|
||||
Reference in New Issue
Block a user