From 52d45da1419e34076d6d56a5aaee3f2b6a045339 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Wed, 6 May 2015 09:39:46 -0600 Subject: [PATCH] Check for access to other app when depotfromapp is specified, otherwise continue with existing depot information --- DepotDownloader/ContentDownloader.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index b5057567..b7f2b8bf 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -221,7 +221,15 @@ namespace DepotDownloader } steam3.RequestAppInfo(otherAppId); - return GetSteam3DepotManifest(depotId, otherAppId, branch); + + if (AccountHasAccess(otherAppId)) + { + return GetSteam3DepotManifest(depotId, otherAppId, branch); + } else { + string contentName = GetAppOrDepotName(INVALID_DEPOT_ID, otherAppId); + string contentDepotName = GetAppOrDepotName(depotId, appId); + Console.WriteLine("Dependent app {0} ({1}) for depot {2} ({3}) is not available from this account.", otherAppId, contentName, depotId, contentDepotName); + } } var manifests = depotChild["manifests"];