diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-01-16 02:04:30 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2025-01-16 02:04:30 -0600 |
| commit | 3c42ac507f587f9dbba51cbd8fa3135a92899088 (patch) | |
| tree | f93e71cd209fe85b6d043252cbee5480197401a3 /src/archive/ZWrapper.cpp | |
| parent | b96910b18fcd7d3f71a7b8161236ef00254a45e6 (diff) | |
Fixed o2r creation on lib mode
Diffstat (limited to 'src/archive/ZWrapper.cpp')
| -rw-r--r-- | src/archive/ZWrapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/archive/ZWrapper.cpp b/src/archive/ZWrapper.cpp index b94b631..6440b62 100644 --- a/src/archive/ZWrapper.cpp +++ b/src/archive/ZWrapper.cpp @@ -8,10 +8,10 @@ #include <miniz/zip_file.hpp> namespace fs = std::filesystem; -miniz_cpp::zip_file mZip; ZWrapper::ZWrapper(const std::string& path) { - mPath = path; + this->mPath = path; + this->mZip = new miniz_cpp::zip_file; } int32_t ZWrapper::CreateArchive() { @@ -34,11 +34,11 @@ bool ZWrapper::AddFile(const std::string& path, std::vector<char> data) { stream.close(); } - mZip.writebytes(path, data); + this->mZip->writebytes(path, data); return true; } int32_t ZWrapper::Close(void) { - mZip.save(this->mPath); + this->mZip->save(this->mPath); return 0; } |
