Fix build

This commit is contained in:
schmurger 2024-05-19 13:37:34 +10:00 committed by otavepto
parent b0cffd485b
commit 6b26ca1b4c
3 changed files with 4 additions and 4 deletions

View File

@ -1153,7 +1153,7 @@ bool Steam_User_Stats::IndicateAchievementProgress( const char *pchName, uint32
save_achievements();
if (!settings->disable_overlay) {
overlay->AddAchievementNotification(it.value());
overlay->update_achievement_progress(actual_ach_name, nCurProgress);
overlay->update_achievement_progress(actual_ach_name, (int)nCurProgress);
}
} catch (...) {}

View File

@ -254,7 +254,7 @@ public:
void FriendDisconnect(Friend _friend);
void AddAchievementNotification(nlohmann::json const& ach);
void update_achievement_progress(std::string const& ach_name, uint32 nCurProgress);
void update_achievement_progress(std::string const& ach_name, int nCurProgress);
};
#else // EMU_OVERLAY
@ -289,7 +289,7 @@ public:
void FriendDisconnect(Friend _friend) {}
void AddAchievementNotification(nlohmann::json const& ach) {}
void update_achievement_progress(std::string const& ach_name, uint32 nCurProgress);
void update_achievement_progress(std::string const& ach_name, int nCurProgress);
};
#endif // EMU_OVERLAY

View File

@ -380,7 +380,7 @@ void Steam_Overlay::load_achievements_data()
}
void Steam_Overlay::update_achievement_progress(std::string const& ach_name, uint32 nCurProgress) {
void Steam_Overlay::update_achievement_progress(std::string const& ach_name, int nCurProgress) {
PRINT_DEBUG_ENTRY();
std::lock_guard<std::recursive_mutex> lock(overlay_mutex);