Skip to content

Commit 6a0147e

Browse files
committed
Update steamkit, use new cdn auth token function
Fixes #545
1 parent 5a695e6 commit 6a0147e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DepotDownloader/DepotDownloader.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
66
<RollForward>LatestMajor</RollForward>
7-
<Version>2.7.2</Version>
7+
<Version>2.7.3</Version>
88
<Description>Steam Downloading Utility</Description>
99
<Authors>SteamRE Team</Authors>
1010
<Copyright>Copyright © SteamRE Team 2024</Copyright>
@@ -26,6 +26,6 @@
2626
</PackageReference>
2727
<PackageReference Include="protobuf-net" Version="3.2.30" />
2828
<PackageReference Include="QRCoder" Version="1.6.0" />
29-
<PackageReference Include="SteamKit2" Version="3.0.0-Beta.3" />
29+
<PackageReference Include="SteamKit2" Version="3.0.0-Beta.4" />
3030
</ItemGroup>
3131
</Project>

DepotDownloader/Steam3Session.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public ReadOnlyCollection<SteamApps.LicenseListCallback.License> Licenses
2929
public Dictionary<uint, ulong> AppTokens { get; } = [];
3030
public Dictionary<uint, ulong> PackageTokens { get; } = [];
3131
public Dictionary<uint, byte[]> DepotKeys { get; } = [];
32-
public ConcurrentDictionary<(uint, string), TaskCompletionSource<SteamApps.CDNAuthTokenCallback>> CDNAuthTokens { get; } = [];
32+
public ConcurrentDictionary<(uint, string), TaskCompletionSource<SteamContent.CDNAuthToken>> CDNAuthTokens { get; } = [];
3333
public Dictionary<uint, SteamApps.PICSProductInfoCallback.PICSProductInfo> AppInfo { get; } = [];
3434
public Dictionary<uint, SteamApps.PICSProductInfoCallback.PICSProductInfo> PackageInfo { get; } = [];
3535
public Dictionary<string, byte[]> AppBetaPasswords { get; } = [];
@@ -291,7 +291,7 @@ public async Task<ulong> GetDepotManifestRequestCodeAsync(uint depotId, uint app
291291
public async Task RequestCDNAuthToken(uint appid, uint depotid, Server server)
292292
{
293293
var cdnKey = (depotid, server.Host);
294-
var completion = new TaskCompletionSource<SteamApps.CDNAuthTokenCallback>();
294+
var completion = new TaskCompletionSource<SteamContent.CDNAuthToken>();
295295

296296
if (bAborted || !CDNAuthTokens.TryAdd(cdnKey, completion))
297297
{
@@ -300,7 +300,7 @@ public async Task RequestCDNAuthToken(uint appid, uint depotid, Server server)
300300

301301
DebugLog.WriteLine(nameof(Steam3Session), $"Requesting CDN auth token for {server.Host}");
302302

303-
var cdnAuth = await steamApps.GetCDNAuthToken(appid, depotid, server.Host);
303+
var cdnAuth = await steamContent.GetCDNAuthToken(appid, depotid, server.Host);
304304

305305
Console.WriteLine($"Got CDN auth token for {server.Host} result: {cdnAuth.Result} (expires {cdnAuth.Expiration})");
306306

0 commit comments

Comments
 (0)