[Scummvm-git-logs] scummvm master -> 36c7485b1ce54ab6f5d27f9e9279029467f4256f

bluegr noreply at scummvm.org
Wed Sep 18 21:30:09 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
36c7485b1c ACHIEVEMENTS: Allow Disabling Of Unlocked Achievement OSD Using Config Option


Commit: 36c7485b1ce54ab6f5d27f9e9279029467f4256f
    https://github.com/scummvm/scummvm/commit/36c7485b1ce54ab6f5d27f9e9279029467f4256f
Author: D G Turner (digitall at scummvm.org)
Date: 2024-09-19T00:30:06+03:00

Commit Message:
ACHIEVEMENTS: Allow Disabling Of Unlocked Achievement OSD Using Config Option

The option in the config file to disable this is "disable_achievement_unlocked_osd"

Changed paths:
    engines/achievements.cpp


diff --git a/engines/achievements.cpp b/engines/achievements.cpp
index f6c13f23f1a..e5e0cd5de7c 100644
--- a/engines/achievements.cpp
+++ b/engines/achievements.cpp
@@ -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(),




More information about the Scummvm-git-logs mailing list