diff options
| author | Filippos Karapetis | 2007-08-01 14:19:55 +0000 |
|---|---|---|
| committer | Filippos Karapetis | 2007-08-01 14:19:55 +0000 |
| commit | e5bd393a8939bd8464cfd65e6ee0fe6c0fd05462 (patch) | |
| tree | 665d2f003f143c87f9a46a2e4048c8c3c3ca978f /engines/saga/detection.cpp | |
| parent | 35052de25feca6ff2a27c4f2434280939e20dd09 (diff) | |
| download | scummvm-rg350-e5bd393a8939bd8464cfd65e6ee0fe6c0fd05462.tar.gz scummvm-rg350-e5bd393a8939bd8464cfd65e6ee0fe6c0fd05462.tar.bz2 scummvm-rg350-e5bd393a8939bd8464cfd65e6ee0fe6c0fd05462.zip | |
Compressed sounds now work in IHNM
svn-id: r28384
Diffstat (limited to 'engines/saga/detection.cpp')
| -rw-r--r-- | engines/saga/detection.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp index 7f154afbda..d5e12a66f3 100644 --- a/engines/saga/detection.cpp +++ b/engines/saga/detection.cpp @@ -150,11 +150,20 @@ bool SagaEngine::initGame() { } // If a compressed sound file is found in the game's directory, set the compressed flag to true - if (Common::File::exists("sounds.cmp") || Common::File::exists("soundsd.cmp") || - Common::File::exists("voices.cmp") || Common::File::exists("voicesd.cmp") || - Common::File::exists("inherit the earth voices.cmp")) { - _gf_compressed_sounds = true; - } + if (_gameDescription->gameType == GType_ITE) { + if (Common::File::exists("sounds.cmp") || Common::File::exists("soundsd.cmp") || + Common::File::exists("voices.cmp") || Common::File::exists("voicesd.cmp") || + Common::File::exists("inherit the earth voices.cmp")) { + _gf_compressed_sounds = true; + } + } else { + if (Common::File::exists("voicess.cmp") || Common::File::exists("voices1.cmp") || + Common::File::exists("voices2.cmp") || Common::File::exists("voices3.cmp") || + Common::File::exists("voices4.cmp") || Common::File::exists("voices5.cmp") || + Common::File::exists("voices6.cmp") || Common::File::exists("voicesd.cmp")) { + _gf_compressed_sounds = true; + } + } return _resource->createContexts(); } |
