diff options
author | Martin Kiewitz | 2010-08-02 08:47:06 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-02 08:47:06 +0000 |
commit | 52c9c7b445f430879cadf06277a0da8fb499e4d8 (patch) | |
tree | 26c204afce425bfb4652ff023ed9db3389b396aa | |
parent | 55ada2315a269ee5dd2777652dc622c5b1c70b2e (diff) | |
download | scummvm-rg350-52c9c7b445f430879cadf06277a0da8fb499e4d8.tar.gz scummvm-rg350-52c9c7b445f430879cadf06277a0da8fb499e4d8.tar.bz2 scummvm-rg350-52c9c7b445f430879cadf06277a0da8fb499e4d8.zip |
SCI: fixing getting selected language
for multilingual games
svn-id: r51608
-rw-r--r-- | engines/sci/graphics/screen.cpp | 2 | ||||
-rw-r--r-- | engines/sci/sci.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index 07ba7441ca..839b9975c5 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -62,7 +62,7 @@ GfxScreen::GfxScreen(ResourceManager *resMan) : _resMan(resMan) { } // Japanese versions of games use hi-res font on upscaled version of the game. - if ((g_sci->getPlatform() == Common::kPlatformPC98) && (getSciVersion() <= SCI_VERSION_1_1)) + if ((g_sci->getLanguage() == Common::JA_JPN) && (getSciVersion() <= SCI_VERSION_1_1)) _upscaledHires = GFX_SCREEN_UPSCALED_640x400; _pixels = _width * _height; diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index ba2779e84d..6abe52fea4 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -239,7 +239,8 @@ Common::Error SciEngine::run() { if (_gameDescription->flags & ADGF_ADDENGLISH) { // if game is multilingual - if (getLanguage() == Common::EN_ANY) { + Common::Language selectedLanguage = Common::parseLanguage(ConfMan.get("language")); + if (selectedLanguage == Common::EN_ANY) { // and english was selected as language if (SELECTOR(printLang) != -1) // set text language to english writeSelectorValue(segMan, _gameObj, SELECTOR(printLang), 1); |