mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
23 lines
568 B
C++
23 lines
568 B
C++
|
|
|
|
class Unzip
|
|
{
|
|
public:
|
|
Unzip();
|
|
FILE *file; // Zip file current open
|
|
unsigned char head[0x1e]; // Zip entry header
|
|
int dataLen; // Zip entry dest (uncompressed) size
|
|
|
|
char *name; // Name of entry
|
|
|
|
int gotoFirstFile();
|
|
int fileOpen();
|
|
int fileClose();
|
|
int fileDecode(unsigned char *data);
|
|
|
|
private:
|
|
int srcLen; // Zip entry source (compressed) size
|
|
int nameLen,extraLen; // Length of name field and extra fields
|
|
int headerPos; // Position of file entry header (PK... etc)
|
|
int compPos; // Position of compressed data
|
|
};
|