deprecate searching for achievements icons in "achievement_images" folder when loading overlay icons

This commit is contained in:
a 2024-08-17 18:28:52 +03:00
parent 4d06c010a3
commit 7e768c73fe
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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<int>(settings->overlay_appearance.icon_size);
if (file_size) {