From 6a0147ee72b0111efe0bbe6603a595e434e5755a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 13 Oct 2024 11:36:10 +0300 Subject: [PATCH] Update steamkit, use new cdn auth token function Fixes #545 --- DepotDownloader/DepotDownloader.csproj | 4 ++-- DepotDownloader/Steam3Session.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DepotDownloader/DepotDownloader.csproj b/DepotDownloader/DepotDownloader.csproj index fca65dc..0b13bed 100644 --- a/DepotDownloader/DepotDownloader.csproj +++ b/DepotDownloader/DepotDownloader.csproj @@ -4,7 +4,7 @@ net8.0 true LatestMajor - 2.7.2 + 2.7.3 Steam Downloading Utility SteamRE Team Copyright © SteamRE Team 2024 @@ -26,6 +26,6 @@ - + diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index 906b309..44b0ac6 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -29,7 +29,7 @@ namespace DepotDownloader public Dictionary AppTokens { get; } = []; public Dictionary PackageTokens { get; } = []; public Dictionary DepotKeys { get; } = []; - public ConcurrentDictionary<(uint, string), TaskCompletionSource> CDNAuthTokens { get; } = []; + public ConcurrentDictionary<(uint, string), TaskCompletionSource> CDNAuthTokens { get; } = []; public Dictionary AppInfo { get; } = []; public Dictionary PackageInfo { get; } = []; public Dictionary 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(); + var completion = new TaskCompletionSource(); 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})");