aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-22 18:07:06 +0100
committerJohannes Schickel2014-01-22 18:07:06 +0100
commit651e2808018d7ca8f36d05cda49e53229b0fd7dd (patch)
tree552bbd50ca89ebe11ef99f7e9f535c09d7e5e8d4 /base/main.cpp
parent1fa74e355cd95c0daec2c8fa0981668aa6446a8b (diff)
downloadscummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.tar.gz
scummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.tar.bz2
scummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.zip
ENGINES: Introduce method Engine::initializePath which sets up SearchMan.
This replaces the hardcoded addition of the game path in runGame in base/main.cpp by an engine configurable one.
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index c993dfa57a..abf75b7e7e 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -197,7 +197,7 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const
//
// Add the game path to the directory search list
- SearchMan.addDirectory(dir.getPath(), dir, 0, 4);
+ engine->initializePath(dir);
// Add extrapath (if any) to the directory search list
if (ConfMan.hasKey("extrapath")) {