MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / closeArchive

Method closeArchive

Engine/source/core/util/zip/zipObject.cpp:119–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void ZipObject::closeArchive()
120{
121 if(mZipArchive == NULL)
122 return;
123
124 for(S32 i = 0;i < mStreamPool.size();++i)
125 {
126 StreamObject *so = mStreamPool[i];
127 if(so && so->getStream() != NULL)
128 closeFile(so);
129
130 SAFE_DELETE_OBJECT(mStreamPool[i]);
131 }
132 mStreamPool.clear();
133
134 mZipArchive->closeArchive();
135 SAFE_DELETE(mZipArchive);
136}
137
138//-----------------------------------------------------------------------------
139

Callers 1

zipObject.cppFile · 0.45

Calls 3

sizeMethod · 0.45
getStreamMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected