aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2013-06-06 21:41:47 +0200
committerAlyssa Milburn2013-06-06 21:41:47 +0200
commitac070ae0c06cdb15fb8ab19b5eff1ba39a527412 (patch)
tree448ab805306fcb297fab0740ab3ad815bf457bf8
parent7840b5e4b9e83270b8df5d8f57f292672163bfe5 (diff)
downloadscummvm-rg350-ac070ae0c06cdb15fb8ab19b5eff1ba39a527412.tar.gz
scummvm-rg350-ac070ae0c06cdb15fb8ab19b5eff1ba39a527412.tar.bz2
scummvm-rg350-ac070ae0c06cdb15fb8ab19b5eff1ba39a527412.zip
MOHAWK: Use addSubDirectoryMatching for LB paths.
-rw-r--r--engines/mohawk/livingbooks.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index f80dbfacbd..efa0dd3fd3 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -148,16 +148,10 @@ MohawkEngine_LivingBooks::MohawkEngine_LivingBooks(OSystem *syst, const MohawkGa
const Common::FSNode gameDataDir(ConfMan.get("path"));
// Rugrats
- 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);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "program", 0, 2);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "Rugrats Adventure Game", 0, 2);
// CarmenTQ
- const Common::FSNode CTQPath = gameDataDir.getChild("95instal");
- if (CTQPath.exists())
- SearchMan.addDirectory(CTQPath.getPath(), CTQPath, 0, 4);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "95instal", 0, 4);
}
MohawkEngine_LivingBooks::~MohawkEngine_LivingBooks() {