Example #1
0
GameInstance *EngineManager::probeGame(const Common::UString &target) const {
	GameInstanceEngine *game = new GameInstanceEngine(target);
	if (game->probe())
		return game;

	delete game;
	return 0;
}
Example #2
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;
}
Example #3
0
void EngineManager::run(GameInstance &game) const {
	GameInstanceEngine *gameEngine = dynamic_cast<GameInstanceEngine *>(&game);
	assert(gameEngine);

	gameEngine->run();

	GfxMan.lockFrame();
	EventMan.requestQuit();
	GfxMan.unlockFrame();

	cleanup();
}
Example #4
0
void EngineManager::listLanguages(GameInstance &game) const {
	GameInstanceEngine *gameEngine = dynamic_cast<GameInstanceEngine *>(&game);
	assert(gameEngine);

	gameEngine->listLanguages();
}