void Module::unloadResources() { std::list<Common::ChangeID>::reverse_iterator r; for (r = _resources.rbegin(); r != _resources.rend(); ++r) deindexResources(*r); _resources.clear(); }
void Module::unloadHAKs() { std::vector<Common::ChangeID>::iterator hak; for (hak = _resHAKs.begin(); hak != _resHAKs.end(); ++hak) deindexResources(*hak); _resHAKs.clear(); }
void DragonAgeEngine::deinit() { Game::unloadTalkTables(_languageTLK); deindexResources(_resources); delete _game; _game = 0; }
void WitcherEngine::unloadLanguageFiles() { TalkMan.removeTable(_languageTLK); std::list<Common::ChangeID>::iterator res; for (res = _languageResources.begin(); res != _languageResources.end(); ++res) deindexResources(*res); _languageResources.clear(); }
Placeable::~Placeable() { hide(); delete _model; try { deindexResources(_modelTexture); } catch (...) { } }
void Module::unloadModule() { _tag.clear(); _ifo.unload(); deindexResources(_resModule); _newModule.clear(); _hasModule = false; }
void Module::unloadModule() { _tag.clear(); _ifo.unload(); deindexResources(_resModule); _newModule.clear(); _eventQueue.clear(); _delayedActions.clear(); _hasModule = false; _running = false; _exit = true; }
void Module::unloadModule() { runScript(kScriptExit, this, _pc); handleActions(); _delayedActions.clear(); TwoDAReg.clear(); clearVariables(); clearScripts(); _tag.clear(); _ifo.unload(); deindexResources(_resModule); _newModule.clear(); _hasModule = false; }
void SonicEngine::unloadLanguageFiles() { TalkMan.removeTable(_languageTLK); deindexResources(_languageHERF); }
void Module::unloadTexturePack() { for (int i = 0; i < 4; i++) deindexResources(_resTP[i]); _currentTexturePack = -1; }
void Module::unloadTexturePack() { deindexResources(_textures); _currentTexturePack = -1; }
void DragonAge2Engine::deinit() { Game::unloadTalkTables(_languageTLK); deindexResources(_resources); _game.reset(); }
void Module::unloadHAKs() { deindexResources(_resHAKs); }