diff options
author | Max Horn | 2004-08-05 11:13:00 +0000 |
---|---|---|
committer | Max Horn | 2004-08-05 11:13:00 +0000 |
commit | b4223febd350ffaa2265570669e88a30642c4ca1 (patch) | |
tree | 73cf089aa11e3e26f669e73f44783215889efeec /base | |
parent | 61bf615168d1619f97d00ed7b08ea4a92c916732 (diff) | |
download | scummvm-rg350-b4223febd350ffaa2265570669e88a30642c4ca1.tar.gz scummvm-rg350-b4223febd350ffaa2265570669e88a30642c4ca1.tar.bz2 scummvm-rg350-b4223febd350ffaa2265570669e88a30642c4ca1.zip |
Enhanced extrapath support
svn-id: r14470
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 6e461eb842..10c914991e 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -34,6 +34,7 @@ #include "base/plugins.h" #include "base/version.h" #include "common/config-manager.h" +#include "common/file.h" #include "common/scaler.h" // For GFX_NORMAL #include "common/timer.h" #include "gui/newgui.h" @@ -259,6 +260,10 @@ static void runGame(GameDetector &detector, OSystem *system) { Engine *engine = detector.createEngine(system); assert(engine); + // Add extrapath (if any) to the directory search list + if (ConfMan.hasKey("extrapath")) + File::addDefaultDirectory(ConfMan.get("extrapath")); + // Run the game engine engine->go(); |