mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Added missing dialog updates to achievement events
Now should properly update the Achievements dialog whenever the displayed state of an achievement/leaderboard changes.
This commit is contained in:
parent
a13b198ba0
commit
cee3d9126b
@ -741,6 +741,8 @@ void AchievementManager::HandleAchievementTriggeredEvent(const rc_client_event_t
|
|||||||
(rc_client_get_hardcore_enabled(instance.m_client)) ? OSD::Color::YELLOW :
|
(rc_client_get_hardcore_enabled(instance.m_client)) ? OSD::Color::YELLOW :
|
||||||
OSD::Color::CYAN,
|
OSD::Color::CYAN,
|
||||||
&instance.GetAchievementBadge(client_event->achievement->id, false));
|
&instance.GetAchievementBadge(client_event->achievement->id, false));
|
||||||
|
AchievementManager::GetInstance().m_update_callback(
|
||||||
|
UpdatedItems{.achievements = {client_event->achievement->id}});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementManager::HandleLeaderboardStartedEvent(const rc_client_event_t* client_event)
|
void AchievementManager::HandleLeaderboardStartedEvent(const rc_client_event_t* client_event)
|
||||||
@ -765,6 +767,8 @@ void AchievementManager::HandleLeaderboardSubmittedEvent(const rc_client_event_t
|
|||||||
client_event->leaderboard->title),
|
client_event->leaderboard->title),
|
||||||
OSD::Duration::VERY_LONG, OSD::Color::YELLOW);
|
OSD::Duration::VERY_LONG, OSD::Color::YELLOW);
|
||||||
AchievementManager::GetInstance().FetchBoardInfo(client_event->leaderboard->id);
|
AchievementManager::GetInstance().FetchBoardInfo(client_event->leaderboard->id);
|
||||||
|
AchievementManager::GetInstance().m_update_callback(
|
||||||
|
UpdatedItems{.leaderboards = {client_event->leaderboard->id}});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementManager::HandleLeaderboardTrackerUpdateEvent(const rc_client_event_t* client_event)
|
void AchievementManager::HandleLeaderboardTrackerUpdateEvent(const rc_client_event_t* client_event)
|
||||||
@ -822,6 +826,8 @@ void AchievementManager::HandleAchievementProgressIndicatorShowEvent(
|
|||||||
OSD::Duration::SHORT, OSD::Color::GREEN,
|
OSD::Duration::SHORT, OSD::Color::GREEN,
|
||||||
&instance.GetAchievementBadge(client_event->achievement->id, false));
|
&instance.GetAchievementBadge(client_event->achievement->id, false));
|
||||||
instance.m_last_progress_message = current_time;
|
instance.m_last_progress_message = current_time;
|
||||||
|
AchievementManager::GetInstance().m_update_callback(
|
||||||
|
UpdatedItems{.achievements = {client_event->achievement->id}});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementManager::HandleGameCompletedEvent(const rc_client_event_t* client_event,
|
void AchievementManager::HandleGameCompletedEvent(const rc_client_event_t* client_event,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user