- Move AddDefaultDirectory() calls in somon engine to constructor
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp svn-id: r21451
This commit is contained in:
parent
ef6baca2ac
commit
f25d49f826
3 changed files with 8 additions and 9 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue