aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-13 10:36:33 +0200
committerMartin Kiewitz2015-06-13 10:36:33 +0200
commit916bce0340b372288271a45ebc4d691ad513ac0a (patch)
tree4f053db5ff441e7287d1bacf56510fb312d40669
parent2763ab39ef6b445926e74d29eb1a713aeed5cb94 (diff)
downloadscummvm-rg350-916bce0340b372288271a45ebc4d691ad513ac0a.tar.gz
scummvm-rg350-916bce0340b372288271a45ebc4d691ad513ac0a.tar.bz2
scummvm-rg350-916bce0340b372288271a45ebc4d691ad513ac0a.zip
SHERLOCK: 3DO: load sounds from room sounds dir
if no directory was given, load sounds from room sounds directory
-rw-r--r--engines/sherlock/sound.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sherlock/sound.cpp b/engines/sherlock/sound.cpp
index 7ff1eadd81..33897320d7 100644
--- a/engines/sherlock/sound.cpp
+++ b/engines/sherlock/sound.cpp
@@ -136,6 +136,10 @@ bool Sound::playSound(const Common::String &name, WaitType waitType, int priorit
} else {
// 3DO uses .aiff extension
filename += ".AIFF";
+ if (!filename.contains('/')) {
+ // if no directory was given, use the room sounds directory
+ filename = "rooms/sounds/" + filename;
+ }
}
}