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.
This commit is contained in:
Johannes Schickel 2014-01-22 18:07:06 +01:00
parent 1fa74e355c
commit 651e280801
3 changed files with 16 additions and 1 deletions

View file

@ -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")) {