mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
Cheevos: Suffix unofficial achievements in popup
This commit is contained in:
parent
2113405c7a
commit
e1d9f93172
|
@ -1101,8 +1101,23 @@ void UnlockAchievement(u32 achievement_id, bool add_notification /* = true*/)
|
|||
DeactivateAchievement(achievement);
|
||||
|
||||
Log_InfoPrintf("Achievement %s (%u) for game %u unlocked", achievement->title.c_str(), achievement_id, g_game_id);
|
||||
ImGuiFullscreen::AddNotification(15.0f, achievement->title, achievement->description,
|
||||
achievement->unlocked_badge_path);
|
||||
|
||||
std::string title;
|
||||
switch (achievement->category)
|
||||
{
|
||||
case AchievementCategory::Local:
|
||||
title = StringUtil::StdStringFromFormat("%s (Local)", achievement->title.c_str());
|
||||
break;
|
||||
case AchievementCategory::Unofficial:
|
||||
title = StringUtil::StdStringFromFormat("%s (Unofficial)", achievement->title.c_str());
|
||||
break;
|
||||
case AchievementCategory::Core:
|
||||
default:
|
||||
title = achievement->title;
|
||||
break;
|
||||
}
|
||||
|
||||
ImGuiFullscreen::AddNotification(15.0f, std::move(title), achievement->description, achievement->unlocked_badge_path);
|
||||
|
||||
if (s_test_mode)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue