From b780329345cd611ec1f122d23f99109f0dc79fca Mon Sep 17 00:00:00 2001 From: skyjake Date: Sat, 31 May 2003 20:09:54 +0000 Subject: [PATCH] Added Zip routines, pk3/zip virtual files --- doomsday/Include/dd_zip.h | 17 +++++++++++++++++ doomsday/Include/de_base.h | 1 + 2 files changed, 18 insertions(+) create mode 100644 doomsday/Include/dd_zip.h diff --git a/doomsday/Include/dd_zip.h b/doomsday/Include/dd_zip.h new file mode 100644 index 0000000000..ce12191a7a --- /dev/null +++ b/doomsday/Include/dd_zip.h @@ -0,0 +1,17 @@ +//=========================================================================== +// DD_ZIP.H +//=========================================================================== +#ifndef __DOOMSDAY_ZIP_PACKAGE_H__ +#define __DOOMSDAY_ZIP_PACKAGE_H__ + +typedef int zipindex_t; + +void Zip_Init(void); +void Zip_Shutdown(void); + +boolean Zip_Open(const char *fileName); +zipindex_t Zip_Find(int (*finder)(const char*, void*), void *parm); +uint Zip_GetSize(zipindex_t index); +uint Zip_Read(zipindex_t index, void *buffer); + +#endif \ No newline at end of file diff --git a/doomsday/Include/de_base.h b/doomsday/Include/de_base.h index 0a1a9b263d..277b588c25 100644 --- a/doomsday/Include/de_base.h +++ b/doomsday/Include/de_base.h @@ -17,5 +17,6 @@ #include "dd_input.h" #include "dd_loop.h" #include "dd_help.h" +#include "dd_zip.h" #endif \ No newline at end of file