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 (...) { } }
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 (...) { } }
void KotOR2Engine::deinit() { unregisterModelLoader(); _game.reset(); }