MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / close

Method close

TheForceEngine/TFE_Archive/zipArchive.cpp:93–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void ZipArchive::close()
94{
95 // Flush new files.
96 if (!m_newFiles.empty())
97 {
98 const size_t fileCount = m_newFiles.size();
99 std::vector<const char*> filePaths;
100 for (size_t i = 0; i < fileCount; i++)
101 {
102 filePaths.push_back(m_newFiles[i].path.c_str());
103 }
104 zip_create(m_archivePath, filePaths.data(), fileCount);
105 m_newFiles.clear();
106 }
107
108 closeFile();
109
110 delete[] m_entries;
111 m_entries = nullptr;
112 m_curFile = INVALID_FILE;
113}
114
115// File Access
116bool ZipArchive::openFile(const char *file)

Callers 15

region_restoreFromDiskFunction · 0.45
logCloseFunction · 0.45
loadMessagesFunction · 0.45
freeArchiveMethod · 0.45
freeAllArchivesMethod · 0.45
writeFunction · 0.45
loadFrameHdFunction · 0.45
getFrameFunction · 0.45
loadWaxHdFunction · 0.45
getWaxFunction · 0.45
getFunction · 0.45
getFunction · 0.45

Calls 7

zip_createFunction · 0.85
push_backMethod · 0.80
c_strMethod · 0.80
dataMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected