From 7e768c73fe530f127960c44c5790f77c075d3dea Mon Sep 17 00:00:00 2001 From: a Date: Sat, 17 Aug 2024 18:28:52 +0300 Subject: [PATCH] deprecate searching for achievements icons in "achievement_images" folder when loading overlay icons --- overlay_experimental/overlay/steam_overlay.h | 1 - overlay_experimental/steam_overlay.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/overlay_experimental/overlay/steam_overlay.h b/overlay_experimental/overlay/steam_overlay.h index e5e290ab..ca442b80 100644 --- a/overlay_experimental/overlay/steam_overlay.h +++ b/overlay_experimental/overlay/steam_overlay.h @@ -107,7 +107,6 @@ struct NotificationsCoords class Steam_Overlay { constexpr static const char ACH_SOUNDS_FOLDER[] = "sounds"; - constexpr static const char ACH_FALLBACK_DIR[] = "achievement_images"; constexpr static const int renderer_detector_polling_ms = 100; diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 71950116..8c504a71 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -1294,10 +1294,6 @@ bool Steam_Overlay::try_load_ach_icon(Overlay_Achievement &ach, bool achieved) --load_trials; std::string file_path(Local_Storage::get_game_settings_path() + icon_name); unsigned int file_size = file_size_(file_path); - if (!file_size) { - file_path = Local_Storage::get_game_settings_path() + Steam_Overlay::ACH_FALLBACK_DIR + PATH_SEPARATOR + icon_name; - file_size = file_size_(file_path); - } int icon_size = static_cast(settings->overlay_appearance.icon_size); if (file_size) {