aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-17 16:24:26 -0400
committerPaul Gilbert2017-09-17 16:24:26 -0400
commit481e18ee1d38512e9d1c730b357b230d5db22cae (patch)
tree0cc7a2e70876280a4ecb80d171cfeb90a66d7b1c /engines/titanic/titanic.cpp
parent4a9098d083683f75918ee15f3191309182206f86 (diff)
downloadscummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.tar.gz
scummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.tar.bz2
scummvm-rg350-481e18ee1d38512e9d1c730b357b230d5db22cae.zip
TITANIC: Create a separate g_language global in it's own file
I was becoming concerned with more and more files having to add the full engine definition and sub-classes thereof via titanic.h, just so the TRANSLATE macro could call getLanguage. This way, files just need to include the lightweight translation.h file instead
Diffstat (limited to 'engines/titanic/titanic.cpp')
-rw-r--r--engines/titanic/titanic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
index 5af822a235..e0e4a07ce6 100644
--- a/engines/titanic/titanic.cpp
+++ b/engines/titanic/titanic.cpp
@@ -56,10 +56,12 @@
namespace Titanic {
TitanicEngine *g_vm;
+Common::Language g_language;
TitanicEngine::TitanicEngine(OSystem *syst, const TitanicGameDescription *gameDesc)
: _gameDescription(gameDesc), Engine(syst), _randomSource("Titanic") {
g_vm = this;
+ g_language = getLanguage();
_debugger = nullptr;
_events = nullptr;
_filesManager = nullptr;