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

Method closeFile

TheForceEngine/TFE_Archive/zipArchive.cpp:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void ZipArchive::closeFile()
174{
175 if (m_fileHandle)
176 {
177 // Close the file entry.
178 zip_entry_close((struct zip_t*)m_fileHandle);
179 // Close the system file.
180 zip_close((struct zip_t*)m_fileHandle);
181 m_fileHandle = nullptr;
182 }
183 m_curFile = INVALID_FILE;
184}
185
186bool ZipArchive::fileExists(const char *file)
187{

Callers 15

readAssetFromArchiveFunction · 0.45
loadEditorSoundFunction · 0.45
loadEditorLevelPreviewFunction · 0.45
loadEditorFrameFunction · 0.45
loadEditorObj3DFunction · 0.45
loadEditorTextureFunction · 0.45
loadPaletteAsTextureFunction · 0.45
loadEditorSpriteFunction · 0.45
addPaletteFunction · 0.45
preprocessAssetsFunction · 0.45
extractArchiveFunction · 0.45
updateAssetListFunction · 0.45

Calls 2

zip_entry_closeFunction · 0.85
zip_closeFunction · 0.85

Tested by

no test coverage detected