diff options
| author | Jeod <47716344+JeodC@users.noreply.github.com> | 2026-06-20 19:03:36 -0400 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2026-06-29 18:48:27 -0600 |
| commit | d91a56479c0615231c93bb1623ca0ed8b771b831 (patch) | |
| tree | 05d60044555e2c09ca5f7167f11190087666848a /src/archive/ZWrapper.cpp | |
| parent | d0042dc6bfa12a6bee5702aa6b67f9a65873509c (diff) | |
Add BK64 asset extraction
Diffstat (limited to 'src/archive/ZWrapper.cpp')
| -rw-r--r-- | src/archive/ZWrapper.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/archive/ZWrapper.cpp b/src/archive/ZWrapper.cpp index 330d35e..480dafc 100644 --- a/src/archive/ZWrapper.cpp +++ b/src/archive/ZWrapper.cpp @@ -34,7 +34,13 @@ bool ZWrapper::AddFile(const std::string& path, std::vector<char> data) { stream.close(); } - this->mZip->writebytes(path, data); + try { + this->mZip->writebytes(path, data); + } catch (const std::exception& e) { + // miniz's own error says nothing useful, so log which entry blew up and how big. + SPDLOG_ERROR("[ZWrapper] Failed to add '{}' ({} bytes): {}", path, fileSize, e.what()); + throw; + } return true; } |
