From afc197fbc99018702415089d6ee69b77b328a80b Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Wed, 27 Jun 2012 11:33:33 -0600 Subject: [PATCH] DepotDownloader: more Steam3 error handling --- DepotDownloader/ContentDownloader.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index b0ad1050..222126f3 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -262,6 +262,9 @@ namespace DepotDownloader var node = depotChild["manifests"]["Public"]; + if (node.Value == null) + return 0; + return UInt64.Parse(node.Value); } @@ -456,7 +459,7 @@ namespace DepotDownloader ulong manifestID = GetSteam3DepotManifest(depotId, appId); if (manifestID == 0) { - Console.WriteLine("Depot {0} ({1}) missing Steam3 manifest."); + Console.WriteLine("Depot {0} ({1}) missing public subsection or manifest section.", depotId, contentName); return; }