add DATA_PATH to directory search list when starting game

svn-id: r27381
This commit is contained in:
Willem Jan Palenstijn 2007-06-12 21:21:40 +00:00
parent 5db4ab48bc
commit 3b7b869476

View File

@ -190,6 +190,11 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String &
if (ConfMan.hasKey("extrapath", Common::ConfigManager::kApplicationDomain))
Common::File::addDefaultDirectoryRecursive(ConfMan.get("extrapath", Common::ConfigManager::kApplicationDomain));
#ifdef DATA_PATH
// Add the global DATA_PATH to the directory search list
Common::File::addDefaultDirectoryRecursive(DATA_PATH);
#endif
// On creation the engine should've set up all debug levels so we can use
// the command line arugments here
Common::enableSpecialDebugLevelList(edebuglevels);