Clarifying the language fallback warnings

svn-id: r28238
This commit is contained in:
Sven Hesse 2007-07-27 16:23:06 +00:00
parent d8e4d70b67
commit e22e47c398

View File

@ -121,9 +121,16 @@ void GobEngine::shutdown() {
void GobEngine::validateLanguage() {
if (_vm->_global->_languageWanted != _vm->_global->_language) {
warning("Your game version doesn't support the requested language");
warning("Using the first language available: %s",
getLangDesc(_vm->_global->_language));
warning("Your game version doesn't support the requested language %s",
getLangDesc(_vm->_global->_languageWanted));
if (((_vm->_global->_languageWanted == 2) && (_vm->_global->_language == 5)) ||
((_vm->_global->_languageWanted == 5) && (_vm->_global->_language == 2)))
warning("Using %s instead", getLangDesc(_vm->_global->_language));
else
warning("Using the first language available: %s",
getLangDesc(_vm->_global->_language));
_vm->_global->_languageWanted = _vm->_global->_language;
}
}