From 154eff4c8399356ab390c02db4dff17d853bbf90 Mon Sep 17 00:00:00 2001 From: Aida Enna Date: Thu, 18 May 2023 10:29:29 -0400 Subject: [PATCH] Casing bugfix --- DepotDownloader/ContentDownloader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 19de60ba..2447c811 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -243,7 +243,7 @@ namespace DepotDownloader var node = manifests[branch].Children.Count > 0 ? manifests[branch]["gid"] : manifests[branch]; - if (branch != "Public" && node == KeyValue.Invalid) + if (branch.ToLower() != "public" && node == KeyValue.Invalid) { var node_encrypted = manifests_encrypted[branch]; if (node_encrypted != KeyValue.Invalid) @@ -590,7 +590,7 @@ namespace DepotDownloader if (manifestId == INVALID_MANIFEST_ID) { manifestId = GetSteam3DepotManifest(depotId, appId, branch); - if (manifestId == INVALID_MANIFEST_ID && branch != "public") + if (manifestId == INVALID_MANIFEST_ID && branch.ToLower() != "public") { Console.WriteLine("Warning: Depot {0} does not have branch named \"{1}\". Trying public branch.", depotId, branch); branch = "public";