Mesen/Utilities/ZIPReader.h
2015-12-26 17:11:00 -05:00

21 lines
423 B
C++

#pragma once
#include "stdafx.h"
#include "miniz.h"
class ZipReader
{
private:
mz_zip_archive _zipArchive;
bool _initialized = false;
public:
ZipReader();
~ZipReader();
void LoadZipArchive(void* buffer, size_t size);
void LoadZipArchive(string filepath);
vector<string> GetFileList();
void ExtractFile(string filename, uint8_t **fileBuffer, size_t &fileSize);
std::stringstream ExtractFile(string filename);
};