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:
parent
1fa74e355c
commit
651e280801
3 changed files with 16 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue