mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
deprecate searching for achievements icons in "achievement_images" folder when loading overlay icons
This commit is contained in:
parent
4d06c010a3
commit
7e768c73fe
@ -107,7 +107,6 @@ struct NotificationsCoords
|
|||||||
class Steam_Overlay
|
class Steam_Overlay
|
||||||
{
|
{
|
||||||
constexpr static const char ACH_SOUNDS_FOLDER[] = "sounds";
|
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;
|
constexpr static const int renderer_detector_polling_ms = 100;
|
||||||
|
|
||||||
|
@ -1294,10 +1294,6 @@ bool Steam_Overlay::try_load_ach_icon(Overlay_Achievement &ach, bool achieved)
|
|||||||
--load_trials;
|
--load_trials;
|
||||||
std::string file_path(Local_Storage::get_game_settings_path() + icon_name);
|
std::string file_path(Local_Storage::get_game_settings_path() + icon_name);
|
||||||
unsigned int file_size = file_size_(file_path);
|
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);
|
int icon_size = static_cast<int>(settings->overlay_appearance.icon_size);
|
||||||
if (file_size) {
|
if (file_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user