diff --git a/Source/Core/Core/AchievementManager.cpp b/Source/Core/Core/AchievementManager.cpp index dce2f89dae..536f5fe63f 100644 --- a/Source/Core/Core/AchievementManager.cpp +++ b/Source/Core/Core/AchievementManager.cpp @@ -202,6 +202,19 @@ void AchievementManager::ActivateDeactivateRichPresence() nullptr, 0); } +void AchievementManager::AchievementEventHandler(const rc_runtime_event_t* runtime_event) +{ + switch (runtime_event->type) + { + case RC_RUNTIME_EVENT_ACHIEVEMENT_TRIGGERED: + HandleAchievementTriggeredEvent(runtime_event); + break; + case RC_RUNTIME_EVENT_LBOARD_TRIGGERED: + HandleLeaderboardTriggeredEvent(runtime_event); + break; + } +} + void AchievementManager::CloseGame() { m_is_game_loaded = false; diff --git a/Source/Core/Core/AchievementManager.h b/Source/Core/Core/AchievementManager.h index dca350bf90..293ac00202 100644 --- a/Source/Core/Core/AchievementManager.h +++ b/Source/Core/Core/AchievementManager.h @@ -48,6 +48,8 @@ public: void ActivateDeactivateLeaderboards(); void ActivateDeactivateRichPresence(); + void AchievementEventHandler(const rc_runtime_event_t* runtime_event); + void CloseGame(); void Logout(); void Shutdown();