Update steamkit, use new cdn auth token function

Fixes #545
This commit is contained in:
Pavel Djundik
2024-10-13 11:36:10 +03:00
parent 5a695e6dd1
commit 6a0147ee72
2 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<RollForward>LatestMajor</RollForward>
<Version>2.7.2</Version>
<Version>2.7.3</Version>
<Description>Steam Downloading Utility</Description>
<Authors>SteamRE Team</Authors>
<Copyright>Copyright © SteamRE Team 2024</Copyright>
@@ -26,6 +26,6 @@
</PackageReference>
<PackageReference Include="protobuf-net" Version="3.2.30" />
<PackageReference Include="QRCoder" Version="1.6.0" />
<PackageReference Include="SteamKit2" Version="3.0.0-Beta.3" />
<PackageReference Include="SteamKit2" Version="3.0.0-Beta.4" />
</ItemGroup>
</Project>

View File

@@ -29,7 +29,7 @@ namespace DepotDownloader
public Dictionary<uint, ulong> AppTokens { get; } = [];
public Dictionary<uint, ulong> PackageTokens { get; } = [];
public Dictionary<uint, byte[]> DepotKeys { get; } = [];
public ConcurrentDictionary<(uint, string), TaskCompletionSource<SteamApps.CDNAuthTokenCallback>> CDNAuthTokens { get; } = [];
public ConcurrentDictionary<(uint, string), TaskCompletionSource<SteamContent.CDNAuthToken>> CDNAuthTokens { get; } = [];
public Dictionary<uint, SteamApps.PICSProductInfoCallback.PICSProductInfo> AppInfo { get; } = [];
public Dictionary<uint, SteamApps.PICSProductInfoCallback.PICSProductInfo> PackageInfo { get; } = [];
public Dictionary<string, byte[]> AppBetaPasswords { get; } = [];
@@ -291,7 +291,7 @@ namespace DepotDownloader
public async Task RequestCDNAuthToken(uint appid, uint depotid, Server server)
{
var cdnKey = (depotid, server.Host);
var completion = new TaskCompletionSource<SteamApps.CDNAuthTokenCallback>();
var completion = new TaskCompletionSource<SteamContent.CDNAuthToken>();
if (bAborted || !CDNAuthTokens.TryAdd(cdnKey, completion))
{
@@ -300,7 +300,7 @@ namespace DepotDownloader
DebugLog.WriteLine(nameof(Steam3Session), $"Requesting CDN auth token for {server.Host}");
var cdnAuth = await steamApps.GetCDNAuthToken(appid, depotid, server.Host);
var cdnAuth = await steamContent.GetCDNAuthToken(appid, depotid, server.Host);
Console.WriteLine($"Got CDN auth token for {server.Host} result: {cdnAuth.Result} (expires {cdnAuth.Expiration})");