mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
Update steam_user_stats.cpp
This commit is contained in:
parent
d75b1850e4
commit
c8028d6a98
@ -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 New Issue
Block a user