mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
Achievements: Fix incorrect data source for mastery points
This commit is contained in:
parent
ac1bb905fe
commit
c86f6eb639
|
@ -1095,11 +1095,11 @@ void Achievements::HandleGameCompleteEvent(const rc_client_event_t* event)
|
||||||
if (g_settings.achievements_notifications && FullscreenUI::Initialize())
|
if (g_settings.achievements_notifications && FullscreenUI::Initialize())
|
||||||
{
|
{
|
||||||
std::string title = fmt::format(TRANSLATE_FS("Achievements", "Mastered {}"), s_game_title);
|
std::string title = fmt::format(TRANSLATE_FS("Achievements", "Mastered {}"), s_game_title);
|
||||||
std::string message = fmt::format(
|
std::string message =
|
||||||
TRANSLATE_FS("Achievements", "{0}, {1}"),
|
fmt::format(TRANSLATE_FS("Achievements", "{0}, {1}"),
|
||||||
TRANSLATE_PLURAL_STR("Achievements", "%n achievements", "Mastery popup",
|
TRANSLATE_PLURAL_STR("Achievements", "%n achievements", "Mastery popup",
|
||||||
s_game_summary.num_unlocked_achievements),
|
s_game_summary.num_unlocked_achievements),
|
||||||
TRANSLATE_PLURAL_STR("Achievements", "%n points", "Mastery popup", s_game_summary.num_unlocked_achievements));
|
TRANSLATE_PLURAL_STR("Achievements", "%n points", "Mastery popup", s_game_summary.points_unlocked));
|
||||||
|
|
||||||
ImGuiFullscreen::AddNotification("achievement_mastery", GAME_COMPLETE_NOTIFICATION_TIME, std::move(title),
|
ImGuiFullscreen::AddNotification("achievement_mastery", GAME_COMPLETE_NOTIFICATION_TIME, std::move(title),
|
||||||
std::move(message), s_game_icon);
|
std::move(message), s_game_icon);
|
||||||
|
|
Loading…
Reference in a new issue