aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2007-06-12 21:21:40 +0000
committerWillem Jan Palenstijn2007-06-12 21:21:40 +0000
commit3b7b86947623cdc0f88eb4727abff7dc29cca8a0 (patch)
tree3957c64688bbe06bff3e180f1ec6cd8ef52359f5 /base/main.cpp
parent5db4ab48bc83f9ab0158160367ee3c84c67b23e3 (diff)
downloadscummvm-rg350-3b7b86947623cdc0f88eb4727abff7dc29cca8a0.tar.gz
scummvm-rg350-3b7b86947623cdc0f88eb4727abff7dc29cca8a0.tar.bz2
scummvm-rg350-3b7b86947623cdc0f88eb4727abff7dc29cca8a0.zip
add DATA_PATH to directory search list when starting game
svn-id: r27381
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp5
1 files changed, 5 insertions, 0 deletions
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);