diff options
author | Eugene Sandulenko | 2006-02-14 01:59:32 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-02-14 01:59:32 +0000 |
commit | e0b7feeaedbb9393025fef12e0d5390845c0890c (patch) | |
tree | 06b51cbbf13d770eb58949fd3f99e1e3c165ae3a /engines | |
parent | 93e9639989690d0fae19c44df4f29624f74465d0 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/saga/saga.cpp | 16 |
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 |