From f567a63d84408bf0f6f51100f2bcd7523b56eb29 Mon Sep 17 00:00:00 2001 From: Tim Pilius Date: Fri, 3 Jan 2025 13:28:42 -0500 Subject: [PATCH] Adding log message for when the lancache has been detected. --- DepotDownloader/Program.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index da9a8387..98fb50d6 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -123,11 +123,16 @@ namespace DepotDownloader if (HasParameter(args, "-use-lancache")) { await Client.DetectLancacheServerAsync(); - // 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")) + if (Client.UseLancacheServer) { - ContentDownloader.Config.MaxDownloads = 25; + 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")) + { + ContentDownloader.Config.MaxDownloads = 25; + } } }