From a7b9cf12d476d9d9e288fd03442f472973a71540 Mon Sep 17 00:00:00 2001 From: alex47exe <17827464+alex47exe@users.noreply.github.com> Date: Sat, 16 Nov 2024 23:41:37 +0000 Subject: [PATCH] fix icon_rsrc.expired, thanks to Edremon --- overlay_experimental/steam_overlay.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 971985fe..5c9b15a7 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -32,8 +32,8 @@ static constexpr int base_notif_window_id = 0 * max_window_id; static constexpr int base_friend_window_id = 1 * max_window_id; static constexpr int base_friend_item_id = 2 * max_window_id; -+static InGameOverlay::ToggleKey overlay_toggle_keys[] = {InGameOverlay::ToggleKey::SHIFT, InGameOverlay::ToggleKey::TAB}; -+static const int toggle_keys_count = 2; +static InGameOverlay::ToggleKey overlay_toggle_keys[] = {InGameOverlay::ToggleKey::SHIFT, InGameOverlay::ToggleKey::TAB}; +static const int toggle_keys_count = 2; // look for the column 'API language code' here: https://partner.steamgames.com/doc/store/localization/languages static constexpr const char* valid_languages[] = { @@ -1670,11 +1670,11 @@ void Steam_Overlay::UnSetupOverlay() PRINT_DEBUG("releasing any images resources"); for (auto &ach : achievements) { if (ach.icon->IsLoaded()) { -+ ach.icon->Unload(); + ach.icon->Unload(); } if (ach.icon_gray->IsLoaded()) { -+ ach.icon_gray->Unload(); + ach.icon_gray->Unload(); } }