aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorMax Horn2008-09-07 22:10:58 +0000
committerMax Horn2008-09-07 22:10:58 +0000
commit2bc093828f0c626c7dd57f9cb300284b8563e411 (patch)
treedb05cf763dd73e0f413648e7b62863b104af220b /engines/saga
parent3c48fb7eaec11a81ee90577ee2e94bfa209aee69 (diff)
downloadscummvm-rg350-2bc093828f0c626c7dd57f9cb300284b8563e411.tar.gz
scummvm-rg350-2bc093828f0c626c7dd57f9cb300284b8563e411.tar.bz2
scummvm-rg350-2bc093828f0c626c7dd57f9cb300284b8563e411.zip
Replaced Engine::_gameDataPath (a String) by Engine::_gameDataDir (an FSNode); adapted code to that (by using getChild() to get subdirs, not string concatenation
svn-id: r34434
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/saga.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index 79e2fd9ac6..5ce5d6ab93 100644
--- a/engines/saga/saga.cpp
+++ b/engines/saga/saga.cpp
@@ -92,20 +92,20 @@ SagaEngine::SagaEngine(OSystem *syst, const SAGAGameDescription *gameDesc)
// The Linux version of Inherit the Earth puts all data files in an
// 'itedata' sub-directory, except for voices.rsc
- Common::File::addDefaultDirectory(_gameDataPath + "itedata/");
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("itedata"));
// The Windows version of Inherit the Earth puts various data files in
// other subdirectories.
- Common::File::addDefaultDirectory(_gameDataPath + "graphics/");
- Common::File::addDefaultDirectory(_gameDataPath + "music/");
- Common::File::addDefaultDirectory(_gameDataPath + "sound/");
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("graphics"));
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("music"));
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("sound"));
// The Multi-OS version puts the voices file in the root directory of
// the CD. The rest of the data files are in game/itedata
- Common::File::addDefaultDirectory(_gameDataPath + "game/itedata/");
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("game").getChild("itedata"));
// Mac CD Wyrmkeep
- Common::File::addDefaultDirectory(_gameDataPath + "patch/");
+ Common::File::addDefaultDirectory(_gameDataDir.getChild("patch"));
_displayClip.left = _displayClip.top = 0;
syst->getEventManager()->registerRandomSource(_rnd, "saga");