mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
Update steam_user_stats.cpp
This commit is contained in:
parent
d75b1850e4
commit
c8028d6a98
1 changed files with 2 additions and 0 deletions
|
@ -208,7 +208,9 @@ bool Steam_User_Stats::SetAchievement(const char* pchName)
|
|||
if (user_achievements.find(pchName) == user_achievements.end() || user_achievements[pchName].value("earned", false) == false) {
|
||||
user_achievements[pchName]["earned"] = true;
|
||||
user_achievements[pchName]["earned_time"] = std::chrono::duration_cast<std::chrono::duration<uint32>>(std::chrono::system_clock::now().time_since_epoch()).count();
|
||||
#ifndef NO_OVERLAY
|
||||
get_steam_client()->steam_overlay->AddAchievementNotification(it.value());
|
||||
#endif
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue