From e0b7feeaedbb9393025fef12e0d5390845c0890c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 14 Feb 2006 01:59:32 +0000 Subject: Move addDefaultDirectory() calls out of init() method to constructor. svn-id: r20679 --- engines/saga/saga.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'engines') 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 -- cgit v1.2.3