diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 98ded980..f9eae65d 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -204,7 +204,7 @@ namespace DepotDownloader KeyValue depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); KeyValue depotChild = depots[depotId.ToString()]; - if (depotChild == null) + if (depotChild == KeyValue.Invalid) return INVALID_MANIFEST_ID; var manifests = depotChild["manifests"]; @@ -399,13 +399,13 @@ namespace DepotDownloader steam3.RequestAppTicket((uint)depotId); ulong manifestID = GetSteam3DepotManifest(depotId, appId, branch); - if (manifestID == 0) + if (manifestID == INVALID_MANIFEST_ID) { Console.WriteLine("Depot {0} ({1}) missing public subsection or manifest section.", depotId, contentName); return null; } - steam3.RequestDepotKey( depotId, ( uint )appId ); + steam3.RequestDepotKey( depotId, appId ); if (!steam3.DepotKeys.ContainsKey(depotId)) { Console.WriteLine("No valid depot key for {0}, unable to download.", depotId);