aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sndres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/sndres.cpp')
-rw-r--r--engines/saga/sndres.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp
index 3f1957b9c5..edbdebabab 100644
--- a/engines/saga/sndres.cpp
+++ b/engines/saga/sndres.cpp
@@ -182,13 +182,17 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff
resourceType = kSoundWAV;
}
- bool patchedSound = false;
+ bool uncompressedSound = false;
// If a patch file exists for sound resource 4 (used in ITE intro), don't treat this sound as compressed
if (_vm->getGameType() == GType_ITE && resourceId == 4 &&
(Common::File::exists("sound/p2_a.iaf") || Common::File::exists("sound/p2_a.voc")))
- patchedSound = true;
+ uncompressedSound = true;
- if ((_vm->getFeatures() & GF_COMPRESSED_SOUNDS) && !patchedSound) {
+ // FIXME: Currently, the SFX.RES file in IHNM cannot be compressed
+ if (_vm->getGameType() == GType_IHNM && (context->fileType & GAME_SOUNDFILE))
+ uncompressedSound = true;
+
+ if ((_vm->getFeatures() & GF_COMPRESSED_SOUNDS) && !uncompressedSound) {
if (soundResource[0] == char(0)) {
resourceType = kSoundMP3;
} else if (soundResource[0] == char(1)) {