GameInstance *EngineManager::probeGame(const Common::UString &target) const { GameInstanceEngine *game = new GameInstanceEngine(target); if (game->probe()) return game; delete game; return 0; }
GameInstance *EngineManager::probeGame(const Common::UString &target, const std::list<const EngineProbe *> &probes) const { GameInstanceEngine *game = new GameInstanceEngine(target); if (game->probe(probes)) return game; delete game; return 0; }
void EngineManager::run(GameInstance &game) const { GameInstanceEngine *gameEngine = dynamic_cast<GameInstanceEngine *>(&game); assert(gameEngine); gameEngine->run(); GfxMan.lockFrame(); EventMan.requestQuit(); GfxMan.unlockFrame(); cleanup(); }
void EngineManager::listLanguages(GameInstance &game) const { GameInstanceEngine *gameEngine = dynamic_cast<GameInstanceEngine *>(&game); assert(gameEngine); gameEngine->listLanguages(); }