|
|
|
|
@ -320,7 +320,7 @@ namespace DepotDownloader
|
|
|
|
|
steam3.Disconnect();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DownloadApp(uint appId, uint depotId, string branch)
|
|
|
|
|
public static void DownloadApp(uint appId, uint depotId, string branch, bool forceDepot = false)
|
|
|
|
|
{
|
|
|
|
|
if(steam3 != null)
|
|
|
|
|
steam3.RequestAppInfo(appId);
|
|
|
|
|
@ -335,6 +335,13 @@ namespace DepotDownloader
|
|
|
|
|
var depotIDs = new List<uint>();
|
|
|
|
|
KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (forceDepot)
|
|
|
|
|
{
|
|
|
|
|
depotIDs.Add(depotId);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (depots != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var depotSection in depots.Children)
|
|
|
|
|
@ -363,7 +370,6 @@ namespace DepotDownloader
|
|
|
|
|
depotIDs.Add(id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (depotIDs == null || (depotIDs.Count == 0 && depotId == INVALID_DEPOT_ID))
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Couldn't find any depots to download for app {0}", appId);
|
|
|
|
|
@ -379,6 +385,7 @@ namespace DepotDownloader
|
|
|
|
|
Console.WriteLine();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var infos = new List<DepotDownloadInfo>();
|
|
|
|
|
|
|
|
|
|
|