aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2006-02-14 01:59:32 +0000
committerEugene Sandulenko2006-02-14 01:59:32 +0000
commite0b7feeaedbb9393025fef12e0d5390845c0890c (patch)
tree06b51cbbf13d770eb58949fd3f99e1e3c165ae3a /engines/saga
parent93e9639989690d0fae19c44df4f29624f74465d0 (diff)
downloadscummvm-rg350-e0b7feeaedbb9393025fef12e0d5390845c0890c.tar.gz
scummvm-rg350-e0b7feeaedbb9393025fef12e0d5390845c0890c.tar.bz2
scummvm-rg350-e0b7feeaedbb9393025fef12e0d5390845c0890c.zip
Move addDefaultDirectory() calls out of init() method to constructor.
svn-id: r20679
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/saga.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index 4adda480c6..70d4f2bf71 100644
--- a/engines/saga/saga.cpp
+++ b/engines/saga/saga.cpp
@@ -134,9 +134,13 @@ SagaEngine::SagaEngine(GameDetector *detector, OSystem *syst)
// the CD. The rest of the data files are in game/itedata
Common::File::addDefaultDirectory(_gameDataPath + "game/itedata/");
+ // Linux demo
+ Common::File::addDefaultDirectory(_gameDataPath + "itedata/");
+
// Mac CD Wyrmkeep
Common::File::addDefaultDirectory(_gameDataPath + "patch/");
+
// Setup mixer
if (!_mixer->isReady()) {
warning("Sound initialization failed.");
@@ -189,18 +193,6 @@ int SagaEngine::init(GameDetector &detector) {
_resource = new Resource(this);
- // Add some default directories
- // Win32 demo & full game
- Common::File::addDefaultDirectory("graphics");
- Common::File::addDefaultDirectory("music");
- Common::File::addDefaultDirectory("sound");
-
- // Linux demo
- Common::File::addDefaultDirectory("itedata");
-
- // Mac demos & full game
- Common::File::addDefaultDirectory("patch");
-
// Process command line
// Detect game and open resource files