MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / _destroy

Method _destroy

ogsr_engine/xrCore/LocatorAPI.cpp:739–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739void CLocatorAPI::_destroy()
740{
741 for (const auto& file : files)
742 {
743 free_file(file);
744 }
745 files.clear();
746 for (auto& pathe : pathes)
747 {
748 char* str = LPSTR(pathe.first);
749 xr_free(str);
750 xr_delete(pathe.second);
751 }
752 pathes.clear();
753 for (auto& archive : archives)
754 {
755 archive.cleanup();
756 archive.close();
757 }
758 archives.clear();
759
760 if (gamedata_unused_references)
761 {
762 gamedata_unused_references->save_as();
763 xr_delete(gamedata_unused_references);
764 }
765}
766
767const CLocatorAPI::file* CLocatorAPI::exist(const char* fn)
768{

Callers

nothing calls this directly

Calls 6

xr_freeFunction · 0.85
xr_deleteFunction · 0.85
save_asMethod · 0.80
clearMethod · 0.45
cleanupMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected