aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/sword2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-09-23 00:15:00 +0000
committerJohannes Schickel2009-09-23 00:15:00 +0000
commitc50940bbf4c9bde173cc3af22cf9b38a25df3514 (patch)
tree54101a22c17e39db13339cd52f4c2909b33b86c4 /engines/sword2/sword2.cpp
parent75113ad5f325f7b6ab802becf845705f97dd629e (diff)
downloadscummvm-rg350-c50940bbf4c9bde173cc3af22cf9b38a25df3514.tar.gz
scummvm-rg350-c50940bbf4c9bde173cc3af22cf9b38a25df3514.tar.bz2
scummvm-rg350-c50940bbf4c9bde173cc3af22cf9b38a25df3514.zip
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
Diffstat (limited to 'engines/sword2/sword2.cpp')
-rw-r--r--engines/sword2/sword2.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp
index e368f257a2..ec1bb4888c 100644
--- a/engines/sword2/sword2.cpp
+++ b/engines/sword2/sword2.cpp
@@ -257,14 +257,10 @@ namespace Sword2 {
Sword2Engine::Sword2Engine(OSystem *syst) : Engine(syst) {
// Add default file directories
- Common::File::addDefaultDirectory(_gameDataDir.getChild("CLUSTERS"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("SWORD2"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("VIDEO"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("SMACKS"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("clusters"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("sword2"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("video"));
- Common::File::addDefaultDirectory(_gameDataDir.getChild("smacks"));
+ SearchMan.addSubDirectoryMatching(_gameDataDir, "clusters");
+ SearchMan.addSubDirectoryMatching(_gameDataDir, "sword2");
+ SearchMan.addSubDirectoryMatching(_gameDataDir, "video");
+ SearchMan.addSubDirectoryMatching(_gameDataDir, "smacks");
if (!scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2demo") || !scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psxdemo"))
_features = GF_DEMO;