MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Load

Method Load

Source/Internal/zip_util.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64};
65
66void ZipFile::Load(const std::string& path, bool append) {
67#ifdef USEWIN32IOAPI
68 zlib_filefunc64_def ffunc;
69 fill_win32_filefunc64A(&ffunc);
70 zf = zipOpen2_64(path.c_str(), append ? 2 : 0, NULL, &ffunc);
71#else
72 zf = zipOpen64(path.c_str(), append ? 2 : 0);
73#endif
74
75 if (zf == NULL) {
76 FatalError("Error", "Problem opening zipfile %s", path.c_str());
77 }
78}
79
80void ZipFile::AddFile(const std::string& src_file_path,
81 const std::string& in_zip_file_path,

Callers 4

ZipFunction · 0.45
UnZipFunction · 0.45
UnZipToFileFunction · 0.45
PrintZipFileInfoFunction · 0.45

Calls 7

fill_win32_filefunc64AFunction · 0.85
FatalErrorFunction · 0.70
zipOpen2_64Function · 0.50
zipOpen64Function · 0.50
unzOpen2_64Function · 0.50
unzOpen64Function · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected