Make it possible to specify language at run-time, since the Gobliiins 1

support for other languages appears to work at least fairly well, and this
makes it easier to test it.

svn-id: r17804
This commit is contained in:
Torbjörn Andersson 2005-04-26 06:29:53 +00:00
parent a0f56739cd
commit 74ae914df2
2 changed files with 19 additions and 3 deletions

@ -130,7 +130,25 @@ int GobEngine::init(GameDetector &detector) {
snd_soundPort = 1;
useMouse = 1;
soundFlags = 0;
language = 5;
switch (Common::parseLanguage(ConfMan.get("language"))) {
case Common::FR_FRA:
language = 0;
break;
case Common::DE_DEU:
language = 1;
break;
case Common::ES_ESP:
language = 3;
break;
case Common::IT_ITA:
language = 4;
break;
default:
// Default to English
language = 2;
break;
}
return 0;
}

@ -174,14 +174,12 @@ numFromTot = word ptr -0Ah
memAvail = dword ptr -6
memBlocks = word ptr -2*/
language = 5;
disableVideoCfg = 0x11;
disableMouseCfg = 0x15;
//reqRAMParag = 570;
//requiredSpace = 10;
strcpy(batFileName, "go");
init_soundVideo(1000, 1);
language = 2;
handle2 = data_openData("intro.stk");
if (handle2 >= 0) {