mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 05:45:45 -04:00
Cheevos: Suffix unofficial achievements in popup
This commit is contained in:
@ -1101,8 +1101,23 @@ void UnlockAchievement(u32 achievement_id, bool add_notification /* = true*/)
|
|||||||
DeactivateAchievement(achievement);
|
DeactivateAchievement(achievement);
|
||||||
|
|
||||||
Log_InfoPrintf("Achievement %s (%u) for game %u unlocked", achievement->title.c_str(), achievement_id, g_game_id);
|
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)
|
if (s_test_mode)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user