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

@ -154,6 +154,10 @@ Engine::~Engine() {
CursorMan.popCursorPalette();
}
void Engine::initializePath(const Common::FSNode &gamePath) {
SearchMan.addDirectory(gamePath.getPath(), gamePath, 0, 4);
}
void initCommonGFX(bool defaultTo1XScaler) {
const Common::ConfigManager::Domain *transientDomain = ConfMan.getDomain(Common::ConfigManager::kTransientDomain);
const Common::ConfigManager::Domain *gameDomain = ConfMan.getActiveDomain();