aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-12-16 10:08:27 +0000
committerJonathan Gray2003-12-16 10:08:27 +0000
commit298d008deff174458b1f46a3019d0a76fe8bbcb7 (patch)
treeb6815520b21ca5a9dc88f2dbf249cd90cc35f0c1
parent6f6675ed8bb22f0deb37fde8c1b999b14818b907 (diff)
downloadscummvm-rg350-298d008deff174458b1f46a3019d0a76fe8bbcb7.tar.gz
scummvm-rg350-298d008deff174458b1f46a3019d0a76fe8bbcb7.tar.bz2
scummvm-rg350-298d008deff174458b1f46a3019d0a76fe8bbcb7.zip
use specified language setting instead of hardcoding german
svn-id: r11681
-rw-r--r--sword1/sword1.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index e76749ea76..36f9cc6dd2 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -137,7 +137,28 @@ void SwordEngine::initialize(void) {
_systemVars.deathScreenFlag = _systemVars.currentMusic = 0;
_systemVars.snrStatus = 0;
_systemVars.rate = 8;
- _systemVars.language = 2;
+
+ switch (Common::parseLanguage(ConfMan.get("language"))) {
+ case Common::DE_DEU:
+ _systemVars.language = BS1_GERMAN;
+ break;
+ case Common::FR_FRA:
+ _systemVars.language = BS1_FRENCH;
+ break;
+ case Common::IT_ITA:
+ _systemVars.language = BS1_ITALIAN;
+ break;
+ case Common::ES_ESP:
+ _systemVars.language = BS1_SPANISH;
+ break;
+ case Common::PT_BRA:
+ _systemVars.language = BS1_PORT;
+ break;
+ // TODO add czech option
+ default:
+ _systemVars.language = BS1_ENGLISH;
+ }
+
_systemVars.playSpeech = 1;
//- start.c:
// todo: move these to somewhere else