start work on czech subtitle support, not finished
svn-id: r12175
This commit is contained in:
parent
7b86116a5d
commit
2be1b4d68a
8 changed files with 28 additions and 7 deletions
11
README
11
README
|
@ -418,6 +418,15 @@ Simon the Sorcerer: 1 & 2
|
||||||
es - Spanish
|
es - Spanish
|
||||||
hb - Hebrew
|
hb - Hebrew
|
||||||
|
|
||||||
|
Broken Sword 1
|
||||||
|
en - English (default)
|
||||||
|
de - German
|
||||||
|
fr - French
|
||||||
|
it - Italian
|
||||||
|
es - Spanish
|
||||||
|
pt - Portuguese
|
||||||
|
cz - Czech
|
||||||
|
|
||||||
5.3) Graphics filters:
|
5.3) Graphics filters:
|
||||||
---- -----------------
|
---- -----------------
|
||||||
ScummVM offers several anti-aliasing filters to attempt to improve visual
|
ScummVM offers several anti-aliasing filters to attempt to improve visual
|
||||||
|
@ -803,7 +812,7 @@ The following keywords are recognized:
|
||||||
in the launcher.
|
in the launcher.
|
||||||
|
|
||||||
language string Specify language (en, de, fr, it, pt, es, jp,
|
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.
|
subtitles bool Set to true to enable subtitles.
|
||||||
talkspeed number Text speed (default: 60)
|
talkspeed number Text speed (default: 60)
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ static const char USAGE_STRING[] =
|
||||||
" hq3x,tv2x,dotmatrix)\n"
|
" hq3x,tv2x,dotmatrix)\n"
|
||||||
" -e, --music-driver=MODE Select music driver (see README for details)\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"
|
" -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"
|
" -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"
|
" -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"
|
" -s, --sfx-volume=NUM Set the sfx volume, 0-255 (default: 192)\n"
|
||||||
|
|
|
@ -142,6 +142,7 @@ const LanguageDescription g_languages[] = {
|
||||||
{"se", "Swedish", SE_SWE},
|
{"se", "Swedish", SE_SWE},
|
||||||
{"hb", "Hebrew", HB_HEB},
|
{"hb", "Hebrew", HB_HEB},
|
||||||
{"ru", "Russian", RU_RUS},
|
{"ru", "Russian", RU_RUS},
|
||||||
|
{"cz", "Czech", CZ_CZE},
|
||||||
{0, 0, UNK_LANG}
|
{0, 0, UNK_LANG}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,8 @@ enum Language {
|
||||||
SE_SWE = 9,
|
SE_SWE = 9,
|
||||||
EN_GRB = 10,
|
EN_GRB = 10,
|
||||||
HB_HEB = 20,
|
HB_HEB = 20,
|
||||||
RU_RUS = 21
|
RU_RUS = 21,
|
||||||
|
CZ_CZE = 22
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LanguageDescription {
|
struct LanguageDescription {
|
||||||
|
|
|
@ -141,6 +141,8 @@ Specify version of game where \fIWORD\fP can be one of amiga, atari, mac, pc.
|
||||||
.BI \-q <lang>
|
.BI \-q <lang>
|
||||||
Specify language where \fI<lang>\fP can be one of:
|
Specify language where \fI<lang>\fP can be one of:
|
||||||
.br
|
.br
|
||||||
|
\fBcz\fP Czech
|
||||||
|
.br
|
||||||
\fBde\fP German
|
\fBde\fP German
|
||||||
.br
|
.br
|
||||||
\fBen\fP English (default for most games)
|
\fBen\fP English (default for most games)
|
||||||
|
@ -306,6 +308,12 @@ Simon the Sorcerer 2 Talkie (Amiga or Mac)
|
||||||
.TP
|
.TP
|
||||||
.B sky
|
.B sky
|
||||||
Beneath a Steel 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
|
.SH FILES
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -64,7 +64,8 @@ void SwordLogic::initialize(void) {
|
||||||
_eventMan = new EventManager();
|
_eventMan = new EventManager();
|
||||||
|
|
||||||
delete _textMan;
|
delete _textMan;
|
||||||
_textMan = new SwordText(_objMan, _resMan, false);
|
_textMan = new SwordText(_objMan, _resMan,
|
||||||
|
(SwordEngine::_systemVars.language == BS1_CZECH) ? true : false);
|
||||||
_screen->useTextManager(_textMan);
|
_screen->useTextManager(_textMan);
|
||||||
_textRunning = _speechRunning = false;
|
_textRunning = _speechRunning = false;
|
||||||
_speechFinished = true;
|
_speechFinished = true;
|
||||||
|
|
|
@ -257,8 +257,7 @@ void SwordSound::initCowSystem(void) {
|
||||||
sprintf(cowName, "SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
|
sprintf(cowName, "SPEECH%d.CLU", SwordEngine::_systemVars.currentCD);
|
||||||
_cowFile.open(cowName);
|
_cowFile.open(cowName);
|
||||||
if (!_cowFile.isOpen()) {
|
if (!_cowFile.isOpen()) {
|
||||||
sprintf(cowName, "SPEECH.CLU");
|
_cowFile.open("speech.clu");
|
||||||
_cowFile.open(cowName);
|
|
||||||
}
|
}
|
||||||
if (_cowFile.isOpen()) {
|
if (_cowFile.isOpen()) {
|
||||||
_cowHeaderSize = _cowFile.readUint32LE();
|
_cowHeaderSize = _cowFile.readUint32LE();
|
||||||
|
|
|
@ -136,7 +136,9 @@ void SwordEngine::initialize(void) {
|
||||||
case Common::PT_BRA:
|
case Common::PT_BRA:
|
||||||
_systemVars.language = BS1_PORT;
|
_systemVars.language = BS1_PORT;
|
||||||
break;
|
break;
|
||||||
// TODO add czech option
|
case Common::CZ_CZE:
|
||||||
|
_systemVars.language = BS1_CZECH;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
_systemVars.language = BS1_ENGLISH;
|
_systemVars.language = BS1_ENGLISH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue