bool frontendShutdown() { debug(LOG_WZ, "== Shutting down frontend =="); saveConfig();// save settings to registry. if (!mechanicsShutdown()) { return false; } interfaceShutDown(); scrShutDown(); //do this before shutting down the iV library resReleaseAllData(); if (!objShutdown()) { return false; } ResearchRelease(); debug(LOG_TEXTURE, "=== frontendShutdown ==="); modelShutdown(); pie_TexShutDown(); pie_TexInit(); // ready for restart freeComponentLists(); statsShutDown(); return true; }
/* Release all the resources currently loaded and the resource load functions */ void resReleaseAll(void) { RES_TYPE *psT, *psNT; resReleaseAllData(); for(psT = psResTypes; psT != NULL; psT = psNT) { psNT = psT->psNext; free(psT); } psResTypes = NULL; }