Check for access to other app when depotfromapp is specified, otherwise continue with existing depot information

This commit is contained in:
Ryan Kistner committed 2015-05-06 09:39:46 -06:00
1 parent 0b722996b5
commit 52d45da141
1 file changed
+9 -1
+9 -1
View File
@@ -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"];