[Scummvm-git-logs] scummvm master -> 183e946ec8720b9b43a24ff3879204617cd4d164

lotharsm mail at serra.me
Sun Jun 27 15:47:20 UTC 2021


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:
183e946ec8 ACHIEVEMENTS: Fix compilation when translations are disabled


Commit: 183e946ec8720b9b43a24ff3879204617cd4d164
    https://github.com/scummvm/scummvm/commit/183e946ec8720b9b43a24ff3879204617cd4d164
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2021-06-27T17:47:17+02:00

Commit Message:
ACHIEVEMENTS: Fix compilation when translations are disabled

Changed paths:
    common/achievements.cpp


diff --git a/common/achievements.cpp b/common/achievements.cpp
index 74d2326ede..c1393a478d 100644
--- a/common/achievements.cpp
+++ b/common/achievements.cpp
@@ -85,10 +85,12 @@ bool AchievementsManager::setActiveDomain(const AchievementsInfo &info) {
 
 
 String AchievementsManager::getCurrentLang() const {
+#ifdef USE_TRANSLATION
 	String uiLang = TransMan.getCurrentLanguage().c_str();
 	if (_achievements.contains(uiLang)) {
 		return uiLang;
 	}
+#endif
 
 	return "en";
 }




More information about the Scummvm-git-logs mailing list