Mesen2/Utilities/ZipWriter.h

21 lines
399 B
C
Raw Permalink Normal View History

2019-02-13 14:10:36 -05:00
#pragma once
2022-09-08 21:29:52 -04:00
#include "pch.h"
2019-02-13 14:10:36 -05:00
#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);
};