MCPcopy Create free account
hub / github.com/beefytech/Beef / Open

Method Open

BeefySysLib/util/ZipFile.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool ZipFile::Open(const StringImpl& filePath)
29{
30 if (mData != NULL)
31 Close();
32
33 mData = new ZipFile::Data();
34 memset(mData, 0, sizeof(ZipFile::Data));
35 if (!mz_zip_reader_init_file(&mData->mZip, filePath.c_str(), 0))
36 return false;
37
38 return true;
39}
40
41bool ZipFile::Create(const StringImpl& filePath)
42{

Callers 5

InitMethod · 0.45
ReadFileMethod · 0.45
LoadTextureMethod · 0.45
Finish128Method · 0.45
Finish64Method · 0.45

Calls 2

CloseFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected