2.4.7 - Don't use depotfromapp to request depot key or manifest request code

pull/359/head DepotDownloader_2.4.7
Ryan Kistner 3 years ago
parent 4ee9db7565
commit 3143362d83

@ -211,20 +211,6 @@ namespace DepotDownloader
return uint.Parse(buildid.Value); return uint.Parse(buildid.Value);
} }
static uint GetSteam3DepotProxyAppId(uint depotId, uint appId)
{
var depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
var depotChild = depots[depotId.ToString()];
if (depotChild == KeyValue.Invalid)
return INVALID_APP_ID;
if (depotChild["depotfromapp"] == KeyValue.Invalid)
return INVALID_APP_ID;
return depotChild["depotfromapp"].AsUnsignedInteger();
}
static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch) static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch)
{ {
var depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); var depots = GetSteam3AppSection(appId, EAppInfoSection.Depots);
@ -649,12 +635,7 @@ namespace DepotDownloader
} }
} }
// For depots that are proxied through depotfromapp, we still need to resolve the proxy app id steam3.RequestDepotKey(depotId, appId);
var containingAppId = appId;
var proxyAppId = GetSteam3DepotProxyAppId(depotId, appId);
if (proxyAppId != INVALID_APP_ID) containingAppId = proxyAppId;
steam3.RequestDepotKey(depotId, containingAppId);
if (!steam3.DepotKeys.ContainsKey(depotId)) if (!steam3.DepotKeys.ContainsKey(depotId))
{ {
Console.WriteLine("No valid depot key for {0}, unable to download.", depotId); Console.WriteLine("No valid depot key for {0}, unable to download.", depotId);
@ -672,7 +653,7 @@ namespace DepotDownloader
var depotKey = steam3.DepotKeys[depotId]; var depotKey = steam3.DepotKeys[depotId];
return new DepotDownloadInfo(depotId, containingAppId, manifestId, branch, installDir, contentName, depotKey); return new DepotDownloadInfo(depotId, appId, manifestId, branch, installDir, contentName, depotKey);
} }
private class ChunkMatch private class ChunkMatch

@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<RollForward>LatestMajor</RollForward> <RollForward>LatestMajor</RollForward>
<Version>2.4.6</Version> <Version>2.4.7</Version>
<Description>Steam Downloading Utility</Description> <Description>Steam Downloading Utility</Description>
<Authors>SteamRE Team</Authors> <Authors>SteamRE Team</Authors>
<Copyright>Copyright © SteamRE Team 2021</Copyright> <Copyright>Copyright © SteamRE Team 2021</Copyright>

Loading…
Cancel
Save