ACHIEVEMENTS: Allow Disabling Of Unlocked Achievement OSD Using Config Option

The option in the config file to disable this is "disable_achievement_unlocked_osd"
This commit is contained in:
D G Turner 2024-06-23 23:40:58 +01:00 committed by Filippos Karapetis
parent 933d7368b3
commit 36c7485b1c

View File

@ -236,7 +236,7 @@ bool AchievementsManager::setAchievement(const String &id) {
_iniFile->setKey(id, "achievements", "true");
_iniFile->saveToSaveFile(_iniFileName);
if (!displayedMessage.empty() && g_system) {
if (!ConfMan.getBool("disable_achievement_unlocked_osd") && !displayedMessage.empty() && g_system) {
U32String msg;
msg = Common::U32String::format("%S\n%S",
_("Achievement unlocked!").c_str(),