diff options
author | Jonathan Gray | 2004-01-06 12:28:24 +0000 |
---|---|---|
committer | Jonathan Gray | 2004-01-06 12:28:24 +0000 |
commit | 2be1b4d68acb322a20eae5c4cb1bb3b7045e7871 (patch) | |
tree | 495c9251d1bd6573b768f8994a19e3d33d6597ee | |
parent | 7b86116a5dedbed0687ddf431be4ec727389bc42 (diff) | |
download | scummvm-rg350-2be1b4d68acb322a20eae5c4cb1bb3b7045e7871.tar.gz scummvm-rg350-2be1b4d68acb322a20eae5c4cb1bb3b7045e7871.tar.bz2 scummvm-rg350-2be1b4d68acb322a20eae5c4cb1bb3b7045e7871.zip |
start work on czech subtitle support, not finished
svn-id: r12175
-rw-r--r-- | README | 11 | ||||
-rw-r--r-- | base/gameDetector.cpp | 2 | ||||
-rw-r--r-- | common/util.cpp | 1 | ||||
-rw-r--r-- | common/util.h | 3 | ||||
-rw-r--r-- | scummvm.6 | 8 | ||||
-rw-r--r-- | sword1/logic.cpp | 3 | ||||
-rw-r--r-- | sword1/sound.cpp | 3 | ||||
-rw-r--r-- | sword1/sword1.cpp | 4 |
8 files changed, 28 insertions, 7 deletions
@@ -418,6 +418,15 @@ Simon the Sorcerer: 1 & 2 es - Spanish hb - Hebrew +Broken Sword 1 + en - English (default) + de - German + fr - French + it - Italian + es - Spanish + pt - Portuguese + cz - Czech + 5.3) Graphics filters: ---- ----------------- ScummVM offers several anti-aliasing filters to attempt to improve visual @@ -803,7 +812,7 @@ The following keywords are recognized: in the launcher. language string Specify language (en, de, fr, it, pt, es, jp, - zh, kr,se, gb, hb) + zh, kr,se, gb, hb, cz) subtitles bool Set to true to enable subtitles. talkspeed number Text speed (default: 60) diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index cd008cb43d..a5e6029b18 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -57,7 +57,7 @@ static const char USAGE_STRING[] = " hq3x,tv2x,dotmatrix)\n" " -e, --music-driver=MODE Select music driver (see README for details)\n" " -q, --language=LANG Select language (en,de,fr,it,pt,es,jp,zh,kr,se,gb,\n" - " hb,ru)\n" + " hb,ru,cz)\n" " -m, --music-volume=NUM Set the music volume, 0-255 (default: 192)\n" " -o, --master-volume=NUM Set the master volume, 0-255 (default: 192)\n" " -s, --sfx-volume=NUM Set the sfx volume, 0-255 (default: 192)\n" diff --git a/common/util.cpp b/common/util.cpp index f53ba300d5..115ce31659 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -142,6 +142,7 @@ const LanguageDescription g_languages[] = { {"se", "Swedish", SE_SWE}, {"hb", "Hebrew", HB_HEB}, {"ru", "Russian", RU_RUS}, + {"cz", "Czech", CZ_CZE}, {0, 0, UNK_LANG} }; diff --git a/common/util.h b/common/util.h index d1a15a3b5a..0d02b9e5f0 100644 --- a/common/util.h +++ b/common/util.h @@ -108,7 +108,8 @@ enum Language { SE_SWE = 9, EN_GRB = 10, HB_HEB = 20, - RU_RUS = 21 + RU_RUS = 21, + CZ_CZE = 22 }; struct LanguageDescription { @@ -141,6 +141,8 @@ Specify version of game where \fIWORD\fP can be one of amiga, atari, mac, pc. .BI \-q <lang> Specify language where \fI<lang>\fP can be one of: .br +\fBcz\fP Czech +.br \fBde\fP German .br \fBen\fP English (default for most games) @@ -306,6 +308,12 @@ Simon the Sorcerer 2 Talkie (Amiga or Mac) .TP .B sky Beneath a Steel Sky +.TP +.B sword1 +Broken Sword I: Shadow of the Templars +.TP +.B sword2 +Broken Sword II: The Smoking Mirror .SH FILES .TP diff --git a/sword1/logic.cpp b/sword1/logic.cpp index cc89d5a797..33c6b5742b 100644 --- a/sword1/logic.cpp +++ b/sword1/logic.cpp @@ -64,7 +64,8 @@ void SwordLogic::initialize(void) { _eventMan = new EventManager(); delete _textMan; - _textMan = new SwordText(_objMan, _resMan, false); + _textMan = new SwordText(_objMan, _resMan, + (SwordEngine::_systemVars.language == BS1_CZECH) ? true : false); _screen->useTextManager(_textMan); _textRunning = _speechRunning = false; _speechFinished = true; diff --git a/sword1/sound.cpp b/sword1/sound.cpp index e9cb523b5a..0751d6cb70 100644 --- a/sword1/sound.cpp +++ b/sword1/sound.cpp @@ -257,8 +257,7 @@ void SwordSound::initCowSystem(void) { sprintf(cowName, "SPEECH%d.CLU", SwordEngine::_systemVars.currentCD); _cowFile.open(cowName); if (!_cowFile.isOpen()) { - sprintf(cowName, "SPEECH.CLU"); - _cowFile.open(cowName); + _cowFile.open("speech.clu"); } if (_cowFile.isOpen()) { _cowHeaderSize = _cowFile.readUint32LE(); diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index f220f2c4f8..5895d27a79 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -136,7 +136,9 @@ void SwordEngine::initialize(void) { case Common::PT_BRA: _systemVars.language = BS1_PORT; break; - // TODO add czech option + case Common::CZ_CZE: + _systemVars.language = BS1_CZECH; + break; default: _systemVars.language = BS1_ENGLISH; } |