[Scummvm-cvs-logs] CVS: scummvm/sword1 sword1.cpp,1.31,1.32 sound.cpp,1.21,1.22 logic.cpp,1.29,1.30
Jonathan Gray
khalek at users.sourceforge.net
Tue Jan 6 04:27:01 CET 2004
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv10774
Modified Files:
sword1.cpp sound.cpp logic.cpp
Log Message:
start work on czech subtitle support, not finished
Index: sword1.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sword1.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- sword1.cpp 6 Jan 2004 12:19:02 -0000 1.31
+++ sword1.cpp 6 Jan 2004 12:26:13 -0000 1.32
@@ -136,7 +136,9 @@
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;
}
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sound.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- sound.cpp 6 Jan 2004 11:48:30 -0000 1.21
+++ sound.cpp 6 Jan 2004 12:26:13 -0000 1.22
@@ -257,8 +257,7 @@
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();
Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/logic.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- logic.cpp 1 Jan 2004 17:11:43 -0000 1.29
+++ logic.cpp 6 Jan 2004 12:26:13 -0000 1.30
@@ -64,7 +64,8 @@
_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;
More information about the Scummvm-git-logs
mailing list