mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 18:02:05 +00:00
SCI: honoring english selection for multilingual games
svn-id: r51598
This commit is contained in:
parent
afe35f5fb3
commit
716f08a8ff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user