mirror of
https://github.com/open-goal/jak-project
synced 2026-08-16 21:28:00 -04:00
9e2b49abaa
* add elzip library (doesn't require zlib) * Can analyze directly from a PCSX2 save-state now * Add scaffolding to auto-watch for new save-states * .gitattributes fix
36 lines
603 B
C++
Vendored
Generated
36 lines
603 B
C++
Vendored
Generated
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <minizip/ioapi.h>
|
|
#include <minizip/zip.h>
|
|
|
|
namespace ziputils
|
|
{
|
|
class zipper
|
|
{
|
|
public:
|
|
zipper();
|
|
~zipper(void);
|
|
|
|
bool open(const char* filename, bool append = false);
|
|
void close();
|
|
bool isOpen();
|
|
|
|
bool addEntry(const char* filename);
|
|
void closeEntry();
|
|
bool isOpenEntry();
|
|
|
|
zipper& operator<<(std::istream& is);
|
|
|
|
private:
|
|
void getTime(tm_zip& tmZip);
|
|
|
|
private:
|
|
zipFile zipFile_;
|
|
bool entryOpen_;
|
|
};
|
|
};
|