GOB: Verify the language in Once Upon A Time

This commit is contained in:
Sven Hesse 2012-06-29 18:31:09 +02:00
parent 3313302a15
commit aae8c60759

View File

@ -21,6 +21,7 @@
*/
#include "gob/gob.h"
#include "gob/global.h"
#include "gob/util.h"
#include "gob/dataio.h"
#include "gob/surface.h"
@ -196,6 +197,15 @@ void OnceUpon::init() {
error("OnceUpon::OnceUpon(): Failed to fonts (%d, %d, %d, %d)",
_jeudak != 0, _lettre != 0, _plettre != 0, _glettre != 0);
if (_vm->_global->_language == kLanguageAmerican)
_vm->_global->_language = kLanguageBritish;
if ((_vm->_global->_language >= kLanguageCount))
error("We do not support the language \"%s\".\n"
"If you are certain that your game copy includes this language,\n"
"please contact the ScummVM team with details about this version.\n"
"Thanks", _vm->getLangDesc(_vm->_global->_language));
initScreen();
}