mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Add support for shared depots (depotfromapp).
This commit is contained in:
1 parent
40fd3c94d6
commit
410408cb71
1 file changed
+15
@@ -208,6 +208,21 @@ namespace DepotDownloader
|
||||
if (depotChild == KeyValue.Invalid)
|
||||
return INVALID_MANIFEST_ID;
|
||||
|
||||
if (depotChild["depotfromapp"] != KeyValue.Invalid)
|
||||
{
|
||||
uint otherAppId = (uint)depotChild["depotfromapp"].AsInteger();
|
||||
if (otherAppId == appId)
|
||||
{
|
||||
// This shouldn't ever happen, but ya never know with Valve. Don't infinite loop.
|
||||
Console.WriteLine("App {0}, Depot {1} has depotfromapp of {2}!",
|
||||
appId, depotId, otherAppId);
|
||||
return INVALID_MANIFEST_ID;
|
||||
}
|
||||
|
||||
steam3.RequestAppInfo(otherAppId);
|
||||
return GetSteam3DepotManifest(depotId, otherAppId, branch);
|
||||
}
|
||||
|
||||
var manifests = depotChild["manifests"];
|
||||
var manifests_encrypted = depotChild["encryptedmanifests"];
|
||||
|
||||
|
||||
Reference in new issue
Block a user