| 26 | } |
| 27 | |
| 28 | bool 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 | |
| 41 | bool ZipFile::Create(const StringImpl& filePath) |
| 42 | { |