From a6af439effc1bc5381a86f41b8d4c66f9e19d567 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 26 Nov 2011 23:37:54 +0100 Subject: MOHAWK: Add Rugrats subfolders to the path too. --- engines/mohawk/livingbooks.cpp | 8 ++++++-- 1 file 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()) -- cgit v1.2.3