mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-02-04 05:31:18 +01:00
Remove asking for beta password interactively because it messes with beta branches
For example steamvr has a public beta branch, and it also includes shared redist depots which obviously have no beta branch.
This commit is contained in:
@@ -246,17 +246,10 @@ namespace DepotDownloader
|
||||
return INVALID_MANIFEST_ID;
|
||||
|
||||
// Either the branch just doesn't exist, or it has a password
|
||||
var password = Config.BetaPassword;
|
||||
|
||||
if (string.IsNullOrEmpty(password))
|
||||
if (string.IsNullOrEmpty(Config.BetaPassword))
|
||||
{
|
||||
Console.WriteLine($"Branch {branch} was not found, either it does not exist or it has a password.");
|
||||
}
|
||||
|
||||
while (string.IsNullOrEmpty(password))
|
||||
{
|
||||
Console.Write($"Please enter the password for branch {branch}: ");
|
||||
Config.BetaPassword = password = Console.ReadLine();
|
||||
Console.WriteLine($"Branch {branch} for depot {depotId} was not found, either it does not exist or it has a password.");
|
||||
return INVALID_MANIFEST_ID;
|
||||
}
|
||||
|
||||
if (!steam3.AppBetaPasswords.ContainsKey(branch))
|
||||
@@ -264,7 +257,7 @@ namespace DepotDownloader
|
||||
// Submit the password to Steam now to get encryption keys
|
||||
await steam3.CheckAppBetaPassword(appId, Config.BetaPassword);
|
||||
|
||||
if (!steam3.AppBetaPasswords.TryGetValue(branch, out var appBetaPassword))
|
||||
if (!steam3.AppBetaPasswords.ContainsKey(branch))
|
||||
{
|
||||
Console.WriteLine($"Error: Password was invalid for branch {branch} (or the branch does not exist)");
|
||||
return INVALID_MANIFEST_ID;
|
||||
@@ -549,6 +542,8 @@ namespace DepotDownloader
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine();
|
||||
|
||||
try
|
||||
{
|
||||
await DownloadSteam3Async(infos).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user