start work on czech subtitle support, not finished

svn-id: r12175
This commit is contained in:
Jonathan Gray 2004-01-06 12:28:24 +00:00
parent 7b86116a5d
commit 2be1b4d68a
8 changed files with 28 additions and 7 deletions

11
README
View file

@ -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)

View file

@ -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"

View file

@ -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}
};

View file

@ -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 {

View file

@ -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

View file

@ -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;

View file

@ -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();

View file

@ -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;
}