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

Method updateFile

Engine/source/core/util/zip/zipArchive.cpp:339–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void ZipArchive::updateFile(ZipTempStream *stream)
340{
341 CentralDir *cd = stream->getCentralDir();
342
343 // [tom, 1/23/2007] Uncompressed size and CRC32 are updated by ZipStatFilter
344 cd->mCompressedSize = stream->getStreamSize();
345 cd->mInternalFlags |= CDFileDirty;
346 cd->mInternalFlags &= ~CDFileOpen;
347
348 // Upper byte should be zero, lower is version as major * 10 + minor
349 cd->mVersionMadeBy = (getVersionNumber() / 100) & 0xff;
350 cd->mExtractVer = 20;
351
352 U32 dosTime = currentTimeToDOSTime();
353 cd->mModTime = dosTime & 0x0000ffff;
354 cd->mModDate = (dosTime & 0xffff0000) >> 16;
355
356 mTempFiles.push_back(stream);
357}
358
359//-----------------------------------------------------------------------------
360

Callers

nothing calls this directly

Calls 4

getVersionNumberFunction · 0.85
getCentralDirMethod · 0.45
getStreamSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected