From 3b7b86947623cdc0f88eb4727abff7dc29cca8a0 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 12 Jun 2007 21:21:40 +0000 Subject: add DATA_PATH to directory search list when starting game svn-id: r27381 --- base/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base') diff --git a/base/main.cpp b/base/main.cpp index 38e93e2961..5a87659046 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -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); -- cgit v1.2.3