Mesen-X/Utilities/ZipWriter.h

21 lines
402 B
C
Raw Normal View History

2015-12-26 17:11:00 -05:00
#pragma once
#include "stdafx.h"
#include "miniz.h"
class ZipWriter
{
private:
mz_zip_archive _zipArchive;
string _zipFilename;
public:
ZipWriter();
2015-12-26 17:11:00 -05:00
~ZipWriter();
bool Initialize(string filename);
bool Save();
2015-12-26 17:11:00 -05:00
void AddFile(string filepath, string zipFilename);
void AddFile(vector<uint8_t> &fileData, string zipFilename);
void AddFile(std::stringstream &filestream, string zipFilename);
2015-12-26 17:11:00 -05:00
};