| 64 | }; |
| 65 | |
| 66 | void 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 | |
| 80 | void ZipFile::AddFile(const std::string& src_file_path, |
| 81 | const std::string& in_zip_file_path, |
no test coverage detected