From 2be1b4d68acb322a20eae5c4cb1bb3b7045e7871 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 6 Jan 2004 12:28:24 +0000 Subject: start work on czech subtitle support, not finished svn-id: r12175 --- sword1/logic.cpp | 3 ++- sword1/sound.cpp | 3 +-- sword1/sword1.cpp | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sword1') 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; } -- cgit v1.2.3