aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs/bbvs.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2015-11-18 01:11:05 +0100
committerEugene Sandulenko2015-11-18 01:11:05 +0100
commit2a6cbd05f876fcab110238104a8917ff00409ff4 (patch)
tree6e6eabef9e9f3b22f9b3eb48377553c22ef31156 /engines/bbvs/bbvs.cpp
parenta373dab5dc9531b6fda47edf4b63b69c1e74d4c1 (diff)
downloadscummvm-rg350-2a6cbd05f876fcab110238104a8917ff00409ff4.tar.gz
scummvm-rg350-2a6cbd05f876fcab110238104a8917ff00409ff4.tar.bz2
scummvm-rg350-2a6cbd05f876fcab110238104a8917ff00409ff4.zip
BBVS: Since we're using GUI for menus, switch iGUI to the relevant language
Diffstat (limited to 'engines/bbvs/bbvs.cpp')
-rw-r--r--engines/bbvs/bbvs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp
index 11e4b6cea7..1d668f9c34 100644
--- a/engines/bbvs/bbvs.cpp
+++ b/engines/bbvs/bbvs.cpp
@@ -39,6 +39,8 @@
#include "common/error.h"
#include "common/fs.h"
#include "common/timer.h"
+#include "common/translation.h"
+#include "engines/advancedDetector.h"
#include "engines/util.h"
#include "graphics/cursorman.h"
#include "graphics/font.h"
@@ -116,9 +118,15 @@ BbvsEngine::BbvsEngine(OSystem *syst, const ADGameDescription *gd) :
Engine::syncSoundSettings();
+ _oldGUILanguage = TransMan.getCurrentLanguage();
+
+ if (gd->flags & GF_GUILANGSWITCH)
+ TransMan.setLanguage(getLanguageLocale(gd->language));
}
BbvsEngine::~BbvsEngine() {
+ if (TransMan.getCurrentLanguage() != _oldGUILanguage)
+ TransMan.setLanguage(_oldGUILanguage);
delete _random;