diff options
author | Martin Kiewitz | 2010-08-01 22:41:06 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-01 22:41:06 +0000 |
commit | 716f08a8ffcb77a1c488b1e4cc88f2be8af97a2e (patch) | |
tree | d7772614461ff82b67a9a2e4a9395fec1da2bf3a /engines | |
parent | afe35f5fb3a6f7df09a3ab751d3d475f5c4f49ab (diff) | |
download | scummvm-rg350-716f08a8ffcb77a1c488b1e4cc88f2be8af97a2e.tar.gz scummvm-rg350-716f08a8ffcb77a1c488b1e4cc88f2be8af97a2e.tar.bz2 scummvm-rg350-716f08a8ffcb77a1c488b1e4cc88f2be8af97a2e.zip |
SCI: honoring english selection for multilingual games
svn-id: r51598
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sci.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 4728578e16..ba2779e84d 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -237,6 +237,17 @@ Common::Error SciEngine::run() { debug("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion())); + if (_gameDescription->flags & ADGF_ADDENGLISH) { + // if game is multilingual + if (getLanguage() == Common::EN_ANY) { + // and english was selected as language + if (SELECTOR(printLang) != -1) // set text language to english + writeSelectorValue(segMan, _gameObj, SELECTOR(printLang), 1); + if (SELECTOR(parseLang) != -1) // and set parser language to english as well + writeSelectorValue(segMan, _gameObj, SELECTOR(parseLang), 1); + } + } + // Check whether loading a savestate was requested int saveSlot = ConfMan.getInt("save_slot"); if (saveSlot >= 0) { |