diff options
author | Max Horn | 2010-05-04 11:56:52 +0000 |
---|---|---|
committer | Max Horn | 2010-05-04 11:56:52 +0000 |
commit | 5568a8473b975dc2e7e0d1f1ae075ebd6d96f2f3 (patch) | |
tree | e16103eabfe926312a01e0d3a18efc1fd7f6a5d9 /engines/sword2/sword2.cpp | |
parent | c5f94872a7c4a1082f7c401c4e90f9bd3bf0290e (diff) | |
download | scummvm-rg350-5568a8473b975dc2e7e0d1f1ae075ebd6d96f2f3.tar.gz scummvm-rg350-5568a8473b975dc2e7e0d1f1ae075ebd6d96f2f3.tar.bz2 scummvm-rg350-5568a8473b975dc2e7e0d1f1ae075ebd6d96f2f3.zip |
Get rid of Engine::_gameDataDir.
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
Diffstat (limited to 'engines/sword2/sword2.cpp')
-rw-r--r-- | engines/sword2/sword2.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index da34783ec8..7d3a345d3c 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -257,10 +257,11 @@ namespace Sword2 { Sword2Engine::Sword2Engine(OSystem *syst) : Engine(syst) { // Add default file directories - SearchMan.addSubDirectoryMatching(_gameDataDir, "clusters"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "sword2"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "video"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "smacks"); + const Common::FSNode gameDataDir(ConfMan.get("path")); + 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; |