From 2977ed7b9faf76abc26e7f872b8d85a750e54ca9 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 19 Jun 2020 21:24:55 +0300 Subject: [PATCH 1/2] Add full update fields to PICS changes callback --- .../SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs b/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs index 1c04bcfc3..0612168bc 100644 --- a/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs +++ b/SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs @@ -397,6 +397,14 @@ internal PICSChangeData( CMsgClientPICSChangesSinceResponse.PackageChange change /// public bool RequiresFullUpdate { get; private set; } /// + /// If this update requires a full update of the app information + /// + public bool RequiresFullAppUpdate { get; private set; } + /// + /// If this update requires a full update of the package information + /// + public bool RequiresFullPackageUpdate { get; private set; } + /// /// Dictionary containing requested package tokens /// public Dictionary PackageChanges { get; private set; } @@ -413,6 +421,8 @@ internal PICSChangesCallback( JobID jobID, CMsgClientPICSChangesSinceResponse ms LastChangeNumber = msg.since_change_number; CurrentChangeNumber = msg.current_change_number; RequiresFullUpdate = msg.force_full_update; + RequiresFullAppUpdate = msg.force_full_app_update; + RequiresFullPackageUpdate = msg.force_full_package_update; PackageChanges = new Dictionary(); AppChanges = new Dictionary(); From 79b98c70f8333c2bf0d8007ec8e644b1c5b36a74 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 20 Jun 2020 10:47:40 +0300 Subject: [PATCH 2/2] Remove UsePICS --- SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs b/SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs index d7e907e2b..6b4d30da0 100644 --- a/SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs +++ b/SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs @@ -85,11 +85,6 @@ public sealed class LoggedOnCallback : CallbackMsg /// public byte[]? Steam2Ticket { get; private set; } - /// - /// Gets a value indicating whether the client should use PICS. - /// - public bool UsePICS { get; private set; } - /// /// Gets the WebAPI authentication user nonce. /// @@ -146,8 +141,6 @@ internal LoggedOnCallback( CMsgClientLogonResponse resp ) this.WebAPIUserNonce = resp.webapi_authenticate_user_nonce; - this.UsePICS = resp.use_pics; - this.VanityURL = resp.vanity_url; this.NumLoginFailuresToMigrate = resp.count_loginfailures_to_migrate;