示例#1
0
void EngineManager::cleanup(GameInstance &game) const {
	try {
		delete game._engine;
		game._engine = 0;

		DebugMan.clearEngineChannels();

		unregisterModelLoader();

		RequestMan.sync();

		FontMan.clear();
		CursorMan.clear();
		TextureMan.clear();

		TokenMan.clear();

		TalkMan.clear();
		TwoDAReg.clear();
		ResMan.clear();

		ConfigMan.setGame();

	} catch (...) {
	}
}
示例#2
0
void EngineManager::cleanup() const {
	try {
		unregisterModelLoader();

		RequestMan.sync();

		FontMan.clear();
		CursorMan.clear();
		TextureMan.clear();

		TokenMan.clear();

		LangMan.clear();
		TalkMan.clear();
		TwoDAReg.clear();
		ResMan.clear();

		ConfigMan.setGame();

	} catch (...) {
	}
}
示例#3
0
void KotOR2Engine::deinit() {
	unregisterModelLoader();

	_game.reset();
}