MCPcopy Create free account
hub / github.com/defold/defold / CleanupResources

Function CleanupResources

engine/resource/src/resource_archive.cpp:55–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 // *********************************************************************************
54
55 static void CleanupResources(FILE* index_file, FILE* data_file, ArchiveIndexContainer* archive)
56 {
57 if (index_file)
58 {
59 fclose(index_file);
60 }
61
62 if (data_file)
63 {
64 fclose(data_file);
65 }
66
67 if (archive)
68 {
69 if (archive->m_ArchiveIndex)
70 {
71 delete archive->m_ArchiveIndex;
72 }
73
74 delete archive;
75 }
76 }
77
78 Result LoadArchiveFromFile(const char* index_file_path, const char* data_file_path, HArchiveIndexContainer* archive)
79 {

Callers 1

LoadArchiveFromFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected