mirror of
https://github.com/SourMesen/Mesen2.git
synced 2024-05-23 06:28:10 -04:00
21 lines
399 B
C++
21 lines
399 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "miniz.h"
|
|
|
|
class ZipWriter
|
|
{
|
|
private:
|
|
mz_zip_archive _zipArchive;
|
|
string _zipFilename;
|
|
|
|
public:
|
|
ZipWriter();
|
|
~ZipWriter();
|
|
|
|
bool Initialize(string filename);
|
|
bool Save();
|
|
|
|
void AddFile(string filepath, string zipFilename);
|
|
void AddFile(vector<uint8_t> &fileData, string zipFilename);
|
|
void AddFile(std::stringstream &filestream, string zipFilename);
|
|
}; |