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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue