|
|
|
@ -123,6 +123,10 @@ namespace DepotDownloader
|
|
|
|
|
if (HasParameter(args, "-use-lancache"))
|
|
|
|
|
{
|
|
|
|
|
await Client.DetectLancacheServerAsync();
|
|
|
|
|
if (Client.UseLancacheServer)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Detected Lancache server! Downloads will be directed through the Lancache.");
|
|
|
|
|
|
|
|
|
|
// Increasing the number of concurrent downloads when the cache is detected since the downloads will likely
|
|
|
|
|
// be served much faster than over the internet. Steam internally has this behavior as well.
|
|
|
|
|
if (!HasParameter(args, "-max-downloads"))
|
|
|
|
@ -130,6 +134,7 @@ namespace DepotDownloader
|
|
|
|
|
ContentDownloader.Config.MaxDownloads = 25;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ContentDownloader.Config.MaxDownloads = GetParameter(args, "-max-downloads", 8);
|
|
|
|
|
ContentDownloader.Config.MaxServers = Math.Max(ContentDownloader.Config.MaxServers, ContentDownloader.Config.MaxDownloads);
|
|
|
|
|