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/agos | |
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/agos')
-rw-r--r-- | engines/agos/agos.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index 38112bc14a..61e4351967 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -24,10 +24,11 @@ */ #include "common/config-manager.h" +#include "common/EventRecorder.h" +#include "common/events.h" #include "common/file.h" +#include "common/fs.h" #include "common/system.h" -#include "common/events.h" -#include "common/EventRecorder.h" #include "agos/debugger.h" #include "agos/intern.h" @@ -514,20 +515,22 @@ AGOSEngine::AGOSEngine(OSystem *syst) "\x5\x5\x4\x6\x5\x3\x4\x5\x6\x3\x5\x5\x4\x6\x5\x3\x4\x6\x5\x6\x6\x6\x5\x5\x5\x6\x5\x6\x6\x6\x6\x6", 32); + const Common::FSNode gameDataDir(ConfMan.get("path")); + // Add default file directories for Acorn version of // Simon the Sorcerer 1 - SearchMan.addSubDirectoryMatching(_gameDataDir, "execute"); + SearchMan.addSubDirectoryMatching(gameDataDir, "execute"); // Add default file directories for Amiga/Macintosh // verisons of Simon the Sorcerer 2 - SearchMan.addSubDirectoryMatching(_gameDataDir, "voices"); + SearchMan.addSubDirectoryMatching(gameDataDir, "voices"); // Add default file directories for Amiga & Macintosh // versions of The Feeble Files - SearchMan.addSubDirectoryMatching(_gameDataDir, "gfx"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "movies"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "sfx"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "speech"); + SearchMan.addSubDirectoryMatching(gameDataDir, "gfx"); + SearchMan.addSubDirectoryMatching(gameDataDir, "movies"); + SearchMan.addSubDirectoryMatching(gameDataDir, "sfx"); + SearchMan.addSubDirectoryMatching(gameDataDir, "speech"); g_eventRec.registerRandomSource(_rnd, "agos"); } |