aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorFilippos Karapetis2014-06-15 03:54:43 +0300
committerFilippos Karapetis2014-06-15 03:54:43 +0300
commit9c4d086165e74d70439fe95992bc9e5c1a65cb25 (patch)
tree2f59e228df41b9630c066cb8c4fe88c5cc8a9403 /engines/drascula
parent1ff27b72dc0266ab54141bfc8fd3dda7cbc7d281 (diff)
downloadscummvm-rg350-9c4d086165e74d70439fe95992bc9e5c1a65cb25.tar.gz
scummvm-rg350-9c4d086165e74d70439fe95992bc9e5c1a65cb25.tar.bz2
scummvm-rg350-9c4d086165e74d70439fe95992bc9e5c1a65cb25.zip
DRASCULA: Handle audio files in the "audio" folder (bug #6631)
The music add-on packs we provide have the audio files in an "audio" folder, but without clear indication that its contents should be copied inside the game data folder. Since this can lead to confusion from users, we just add support for this case
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 35461f1d71..797b6d94b0 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -194,6 +194,9 @@ DrasculaEngine::DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gam
_console = 0;
+ const Common::FSNode gameDataDir(ConfMan.get("path"));
+ SearchMan.addSubDirectoryMatching(gameDataDir, "audio");
+
int cd_num = ConfMan.getInt("cdrom");
if (cd_num >= 0)
_system->getAudioCDManager()->openCD(cd_num);