| 171 | } |
| 172 | |
| 173 | void ZipArchive::closeFile() |
| 174 | { |
| 175 | if (m_fileHandle) |
| 176 | { |
| 177 | // Close the file entry. |
| 178 | zip_entry_close((struct zip_t*)m_fileHandle); |
| 179 | // Close the system file. |
| 180 | zip_close((struct zip_t*)m_fileHandle); |
| 181 | m_fileHandle = nullptr; |
| 182 | } |
| 183 | m_curFile = INVALID_FILE; |
| 184 | } |
| 185 | |
| 186 | bool ZipArchive::fileExists(const char *file) |
| 187 | { |
no test coverage detected