int AgiEngine::agiDeinit() { int ec; cleanInput(); // remove all words from memory agiUnloadResources(); // unload resources in memory _loader->unloadResource(rLOGIC, 0); ec = _loader->deinit(); unloadObjects(); unloadWords(); clearImageStack(); return ec; }
int AgiEngine::agiDeinit() { int ec; if (!_loader) return errOK; _words->clearEgoWords(); // remove all words from memory agiUnloadResources(); // unload resources in memory _loader->unloadResource(RESOURCETYPE_LOGIC, 0); ec = _loader->deinit(); unloadObjects(); _words->unloadDictionary(); clearImageStack(); return ec; }