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

Method _init

Engine/source/core/util/zip/zipVolume.cpp:544–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void ZipFileSystem::_init()
545{
546 if (mInitted)
547 return;
548 mInitted = true;
549
550 if (!mZipArchive.isNull())
551 return;
552 if (mZipArchiveStream->getStatus() != Stream::Ok)
553 return;
554
555 mZipArchive = new ZipArchive();
556 if (!mZipArchive->openArchive(mZipArchiveStream, ZipArchive::Read))
557 {
558 Con::errorf("ZipFileSystem: failed to open zip archive %s", mZipFilename.c_str());
559 return;
560 }
561
562 // tell the archive that it owns the zipStream now
563 mZipArchive->setDiskStream(mZipArchiveStream);
564 // and null it out because we don't own it anymore
565 mZipArchiveStream = NULL;
566
567 // for debugging
568 //mZipArchive->dumpCentralDirectory();
569}
570
571};

Callers

nothing calls this directly

Calls 6

setDiskStreamMethod · 0.80
errorfFunction · 0.50
isNullMethod · 0.45
getStatusMethod · 0.45
openArchiveMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected