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/mohawk/riven.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/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 805ba52f8a..0412144034 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -49,12 +49,14 @@ MohawkEngine_Riven::MohawkEngine_Riven(OSystem *syst, const MohawkGameDescriptio _activatedSLST = false; _extrasFile = NULL; - // Attempt to let game run from the CD's + // Attempt to let game run from the CDs // NOTE: assets2 contains higher quality audio than assets1 - SearchMan.addSubDirectoryMatching(_gameDataDir, "all"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "data"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "exe"); - SearchMan.addSubDirectoryMatching(_gameDataDir, "assets2"); + const Common::FSNode gameDataDir(ConfMan.get("path")); + + SearchMan.addSubDirectoryMatching(gameDataDir, "all"); + SearchMan.addSubDirectoryMatching(gameDataDir, "data"); + SearchMan.addSubDirectoryMatching(gameDataDir, "exe"); + SearchMan.addSubDirectoryMatching(gameDataDir, "assets2"); g_atrusJournalRectSolo = new Common::Rect(295, 402, 313, 426); g_atrusJournalRect = new Common::Rect(222, 402, 240, 426); |