diff options
| author | Max Horn | 2006-04-01 21:52:33 +0000 | 
|---|---|---|
| committer | Max Horn | 2006-04-01 21:52:33 +0000 | 
| commit | 2197597f9aa345d1c52806c502bf4f9f6c09a598 (patch) | |
| tree | ab05448fcd833c36a1ef2c9b0064d95a3e149482 | |
| parent | d61b1045682e054cb99c3497da8b79a48f104c28 (diff) | |
| download | scummvm-rg350-2197597f9aa345d1c52806c502bf4f9f6c09a598.tar.gz scummvm-rg350-2197597f9aa345d1c52806c502bf4f9f6c09a598.tar.bz2 scummvm-rg350-2197597f9aa345d1c52806c502bf4f9f6c09a598.zip  | |
Moved File::resetDefaultDirectories from Engine destructor to runGame (since that is the main spot where we call addDefaultDirectory)
svn-id: r21535
| -rw-r--r-- | base/engine.cpp | 2 | ||||
| -rw-r--r-- | base/main.cpp | 3 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/base/engine.cpp b/base/engine.cpp index ae8bfa0dcf..02ed7d1cdb 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -49,8 +49,6 @@ Engine::Engine(OSystem *syst)  }  Engine::~Engine() { -	Common::File::resetDefaultDirectories(); -  	delete _mixer;  	delete _saveFileMan; diff --git a/base/main.cpp b/base/main.cpp index 56a820f438..7e776a7137 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -336,6 +336,9 @@ static int runGame(GameDetector &detector, OSystem &system, const Common::String  	// Stop all sound processing now (this prevents some race conditions later on)  	system.clearSoundCallback(); +	// Reset the file/directory mappings +	Common::File::resetDefaultDirectories(); +  	return result;  }  | 
