diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/sound.cpp | 4 |
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; + } } } |