From 8d31a80c98e3b62870003958d21e2e063d3eac40 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 2 Jun 2023 11:16:54 +0300 Subject: [PATCH] Remove code to handle older style of gids --- DepotDownloader/ContentDownloader.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 19de60ba..705ad051 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -241,7 +241,7 @@ namespace DepotDownloader if (manifests.Children.Count == 0 && manifests_encrypted.Children.Count == 0) return INVALID_MANIFEST_ID; - var node = manifests[branch].Children.Count > 0 ? manifests[branch]["gid"] : manifests[branch]; + var node = manifests[branch]["gid"]; if (branch != "Public" && node == KeyValue.Invalid) { @@ -257,11 +257,6 @@ namespace DepotDownloader var encrypted_gid = node_encrypted["gid"]; - if (encrypted_gid == KeyValue.Invalid) - { - encrypted_gid = node_encrypted["encrypted_gid_2"]; - } - if (encrypted_gid != KeyValue.Invalid) { // Submit the password to Steam now to get encryption keys