diff options
author | Eugene Sandulenko | 2006-03-25 19:18:09 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-25 19:18:09 +0000 |
commit | f25d49f826b7ddfd9ce96beca6f0b0a0a6d82a00 (patch) | |
tree | 08c8f04fdf2d9967f6d56da3e3c8a80b539975e7 /base | |
parent | ef6baca2ac40bc4652bba9a791db96ca07b2a6a9 (diff) | |
download | scummvm-rg350-f25d49f826b7ddfd9ce96beca6f0b0a0a6d82a00.tar.gz scummvm-rg350-f25d49f826b7ddfd9ce96beca6f0b0a0a6d82a00.tar.bz2 scummvm-rg350-f25d49f826b7ddfd9ce96beca6f0b0a0a6d82a00.zip |
- Move AddDefaultDirectory() calls in somon engine to constructor
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp
svn-id: r21451
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index dba2eeacb7..cd118ade30 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -314,6 +314,11 @@ static int runGame(GameDetector &detector, OSystem &system, const Common::String if (ConfMan.hasKey("extrapath", Common::ConfigManager::kApplicationDomain)) Common::File::addDefaultDirectoryRecursive(ConfMan.get("extrapath", Common::ConfigManager::kApplicationDomain)); + // Theme-related + if (ConfMan.hasKey("themepath")) { + Common::File::addDefaultDirectory(ConfMan.get("themepath")); + } + // As a last resort add current directory and lock further additions Common::File::addDefaultDirectory(".", true); |