mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 20:25:54 +01:00
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||
|
|
||
|
#ifndef SE_INCL_UNZIP_H
|
||
|
#define SE_INCL_UNZIP_H
|
||
|
#ifdef PRAGMA_ONCE
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
// add one zip archive to current active set
|
||
|
void UNZIPAddArchive(const CTFileName &fnm);
|
||
|
// read directories of all currently added archives, in reverse alphabetical order
|
||
|
void UNZIPReadDirectoriesReverse_t(void);
|
||
|
// check if a zip file entry exists
|
||
|
BOOL UNZIPFileExists(const CTFileName &fnm);
|
||
|
// open a zip file entry for reading
|
||
|
INDEX UNZIPOpen_t(const CTFileName &fnm);
|
||
|
// get uncompressed size of a file
|
||
|
SLONG UNZIPGetSize(INDEX iHandle);
|
||
|
// get CRC of a file
|
||
|
ULONG UNZIPGetCRC(INDEX iHandle);
|
||
|
// read a block from zip file
|
||
|
void UNZIPReadBlock_t(INDEX iHandle, UBYTE *pub, SLONG slStart, SLONG slLen);
|
||
|
// close a zip file entry
|
||
|
void UNZIPClose(INDEX iHandle);
|
||
|
// get info on a zip file entry
|
||
|
void UNZIPGetFileInfo(INDEX iHandle, CTFileName &fnmZip,
|
||
|
SLONG &slOffset, SLONG &slSizeCompressed, SLONG &slSizeUncompressed,
|
||
|
BOOL &bCompressed);
|
||
|
// enumeration for all files in all zips
|
||
|
INDEX UNZIPGetFileCount(void);
|
||
|
const CTFileName &UNZIPGetFileAtIndex(INDEX i);
|
||
|
|
||
|
// get index of a file (-1 for no file)
|
||
|
INDEX UNZIPGetFileIndex(const CTFileName &fnm);
|
||
|
// check if a file is from a mod's zip
|
||
|
BOOL UNZIPIsFileAtIndexMod(INDEX i);
|
||
|
|
||
|
|
||
|
#endif /* include-once check. */
|
||
|
|