Slighty modified patch #1661777: "SCUMM: allow non-english DIG and COMI

to be set to English"

svn-id: r26559
This commit is contained in:
Eugene Sandulenko 2007-04-21 21:31:53 +00:00
parent 28e721836a
commit 873efee47f

View File

@ -1230,6 +1230,14 @@ void ScummEngine_v7::loadLanguageBundle() {
ScummFile file;
int32 size;
// if game is manually set to English, don't try to load localized text
if ((_language == Common::EN_ANY) || (_language == Common::EN_USA) || (_language == Common::EN_GRB)) {
warning("Language file is forced to be ignored");
_existLanguageFile = false;
return;
}
if (_game.id == GID_DIG) {
openFile(file, "language.bnd");
} else if (_game.id == GID_CMI) {