aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-26 06:29:53 +0000
committerTorbjörn Andersson2005-04-26 06:29:53 +0000
commit74ae914df2b88bcb28e0fec40e9e69ed3915af41 (patch)
treedfd813ee70e609a7be55af82c87a8895eebc9afc
parenta0f56739cd7c325f927d148593b64018c59ca6d1 (diff)
downloadscummvm-rg350-74ae914df2b88bcb28e0fec40e9e69ed3915af41.tar.gz
scummvm-rg350-74ae914df2b88bcb28e0fec40e9e69ed3915af41.tar.bz2
scummvm-rg350-74ae914df2b88bcb28e0fec40e9e69ed3915af41.zip
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
-rw-r--r--gob/gob.cpp20
-rw-r--r--gob/init.cpp2
2 files changed, 19 insertions, 3 deletions
diff --git a/gob/gob.cpp b/gob/gob.cpp
index 44e57609ac..e8e9d292b9 100644
--- a/gob/gob.cpp
+++ b/gob/gob.cpp
@@ -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;
}
diff --git a/gob/init.cpp b/gob/init.cpp
index 21cb589932..7c72dc03f2 100644
--- a/gob/init.cpp
+++ b/gob/init.cpp
@@ -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) {