[Scummvm-git-logs] scummvm master -> 99353141ddde82ddb5a38078c1e338e443fa4e8c
Strangerke
noreply at scummvm.org
Sat Apr 4 06:18:31 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
99353141dd WAYNESWORLD: Remove some obsolete ifdef related to translation
Commit: 99353141ddde82ddb5a38078c1e338e443fa4e8c
https://github.com/scummvm/scummvm/commit/99353141ddde82ddb5a38078c1e338e443fa4e8c
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2026-04-04T08:16:08+02:00
Commit Message:
WAYNESWORLD: Remove some obsolete ifdef related to translation
Changed paths:
engines/waynesworld/waynesworld.cpp
engines/waynesworld/waynesworld.h
diff --git a/engines/waynesworld/waynesworld.cpp b/engines/waynesworld/waynesworld.cpp
index 7031bee1122..27c0ed39800 100644
--- a/engines/waynesworld/waynesworld.cpp
+++ b/engines/waynesworld/waynesworld.cpp
@@ -53,20 +53,9 @@ WaynesWorldEngine::WaynesWorldEngine(OSystem *syst, const ADGameDescription *gd)
Engine::syncSoundSettings();
-#ifdef USE_TRANSLATION
- _oldGUILanguage = TransMan.getCurrentLanguage();
-
- if (gd->flags & GF_GUILANGSWITCH)
- TransMan.setLanguage(getLanguageLocale(gd->language));
-#endif
}
WaynesWorldEngine::~WaynesWorldEngine() {
-#ifdef USE_TRANSLATION
- if (TransMan.getCurrentLanguage() != _oldGUILanguage)
- TransMan.setLanguage(_oldGUILanguage);
-#endif
-
delete _random;
}
diff --git a/engines/waynesworld/waynesworld.h b/engines/waynesworld/waynesworld.h
index fec0b276ee7..a9be35555e3 100644
--- a/engines/waynesworld/waynesworld.h
+++ b/engines/waynesworld/waynesworld.h
@@ -141,9 +141,6 @@ public:
private:
Graphics::PixelFormat _pixelFormat;
-#ifdef USE_TRANSLATION
- Common::String _oldGUILanguage;
-#endif
void wwEffect(int arg0, int arg1, bool flag);
void cleanPt3();
More information about the Scummvm-git-logs
mailing list