diff options
author | Torbjörn Andersson | 2003-09-09 06:54:11 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-09 06:54:11 +0000 |
commit | e68176f8c390cf431aff9862639b9a384920517a (patch) | |
tree | 1ccdd6fa704b464e58604fd3a22b0c3b286621e0 /sword2 | |
parent | 5396901ec6909e3e03c9e70d1b05bd2ef60efa52 (diff) | |
download | scummvm-rg350-e68176f8c390cf431aff9862639b9a384920517a.tar.gz scummvm-rg350-e68176f8c390cf431aff9862639b9a384920517a.tar.bz2 scummvm-rg350-e68176f8c390cf431aff9862639b9a384920517a.zip |
Read Smacker voice-overs from the correct file, same way as speech.cpp does
svn-id: r10122
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/anims.cpp | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/sword2/anims.cpp b/sword2/anims.cpp index 996ba9fc9d..3652b13463 100644 --- a/sword2/anims.cpp +++ b/sword2/anims.cpp @@ -579,26 +579,13 @@ void CreateSequenceSpeech(_movieTextObject *sequenceText[]) // (James23may97) // set up path to speech cluster // first checking if we have speech1.clu or speech2.clu in current directory (for translators to test) - if (g_sword2->_gameId == GID_SWORD2_DEMO) { - strcpy(speechFile,"speech.clu"); - } else { + File fp; - #ifdef _SWORD2_DEBUG - if ((res_man.WhichCd()==1) && (!access("speech1.clu",0))) // if 0 ie. if it's there - { - strcpy(speechFile,"speech1.clu"); - } - else if ((res_man.WhichCd()==2) && (!access("speech2.clu",0))) // if 0 ie. if it's there - { - strcpy(speechFile,"speech2.clu"); - } - else - #endif // _SWORD2_DEBUG - { - strcpy(speechFile, "speech.clu"); - } - } - //------------------------------ + sprintf(speechFile, "speech%d.clu", res_man.WhichCd()); + if (fp.open(speechFile, g_sword2->getGameDataPath())) + fp.close(); + else + strcpy(speechFile, "speech.clu"); wavSize = g_sword2->_sound->GetCompSpeechSize(speechFile, wavId); // returns size of decompressed wav, or 0 if wav not found if (wavSize) // if we've got the wav |