aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-11-26 23:37:54 +0100
committerAlyssa Milburn2011-11-26 23:37:54 +0100
commita6af439effc1bc5381a86f41b8d4c66f9e19d567 (patch)
treee05c617a0b40f30e305707cd3feeb627edb89ad1
parent09349c2bcac228fe92ab05b4c4004881347697a3 (diff)
downloadscummvm-rg350-a6af439effc1bc5381a86f41b8d4c66f9e19d567.tar.gz
scummvm-rg350-a6af439effc1bc5381a86f41b8d4c66f9e19d567.tar.bz2
scummvm-rg350-a6af439effc1bc5381a86f41b8d4c66f9e19d567.zip
MOHAWK: Add Rugrats subfolders to the path too.
-rw-r--r--engines/mohawk/livingbooks.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index ca3e37ba85..d0c8bf3515 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -141,8 +141,12 @@ MohawkEngine_LivingBooks::MohawkEngine_LivingBooks(OSystem *syst, const MohawkGa
const Common::FSNode gameDataDir(ConfMan.get("path"));
// Rugrats
- SearchMan.addSubDirectoryMatching(gameDataDir, "program");
- SearchMan.addSubDirectoryMatching(gameDataDir, "Rugrats Adventure Game");
+ const Common::FSNode ProgPath = gameDataDir.getChild("program");
+ if (ProgPath.exists())
+ SearchMan.addDirectory(ProgPath.getPath(), ProgPath, 0, 2);
+ const Common::FSNode RugPath = gameDataDir.getChild("Rugrats Adventure Game");
+ if (RugPath.exists())
+ SearchMan.addDirectory(RugPath.getPath(), RugPath, 0, 2);
// CarmenTQ
const Common::FSNode CTQPath = gameDataDir.getChild("95instal");
if (CTQPath.exists())