diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index a24b1003..6053b032 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -349,7 +349,7 @@ namespace DepotDownloader Password = loginKey == null ? password : null, ShouldRememberPassword = Config.RememberPassword, LoginKey = loginKey, - LoginID = 0x534B32, // "SK2" + LoginID = Config.LoginID ?? 0x534B32, // "SK2" } ); diff --git a/DepotDownloader/DownloadConfig.cs b/DepotDownloader/DownloadConfig.cs index fc695aa8..d337d540 100644 --- a/DepotDownloader/DownloadConfig.cs +++ b/DepotDownloader/DownloadConfig.cs @@ -25,5 +25,8 @@ namespace DepotDownloader public string SuppliedPassword { get; set; } public bool RememberPassword { get; set; } + + // A Steam LoginID to allow multiple concurrent connections + public uint? LoginID {get; set; } } } diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index 5b6e5f65..3cb9f0bb 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -101,6 +101,7 @@ namespace DepotDownloader ContentDownloader.Config.MaxServers = GetParameter( args, "-max-servers", 20 ); ContentDownloader.Config.MaxDownloads = GetParameter( args, "-max-downloads", 4 ); ContentDownloader.Config.MaxServers = Math.Max( ContentDownloader.Config.MaxServers, ContentDownloader.Config.MaxDownloads ); + ContentDownloader.Config.LoginID = HasParameter( args, "-loginid" ) ? (uint?)GetParameter( args, "-loginid" ) : null; #endregion @@ -303,6 +304,7 @@ namespace DepotDownloader Console.WriteLine( "\t-cellid <#>\t\t\t\t- the overridden CellID of the content server to download from." ); Console.WriteLine( "\t-max-servers <#>\t\t- maximum number of content servers to use. (default: 8)." ); Console.WriteLine( "\t-max-downloads <#>\t\t- maximum number of chunks to download concurrently. (default: 4)." ); + Console.WriteLine( "\t-loginid <#>\t\t- a unique 32-bit integer Steam LogonID in decimal, required if running multiple instances of DepotDownloader concurrently." ); } } }