From c0140ca09aaa26a0d82aa4a9eacb4a726e852dec Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 15 Jul 2002 20:10:53 +0000 Subject: [PATCH] This commit was generated by cvs2svn to compensate for changes in r19, which included commits to RCS files with non-trunk default branches. --- SDL/SDL_rwops_zzip.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 SDL/SDL_rwops_zzip.h diff --git a/SDL/SDL_rwops_zzip.h b/SDL/SDL_rwops_zzip.h new file mode 100644 index 0000000..1a2d188 --- /dev/null +++ b/SDL/SDL_rwops_zzip.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2001 Guido Draheim + * Use freely under the restrictions of the ZLIB License + * + * You should be able to drop it in the place of a SDL_RWFromFile. Then + * go to X/share/myapp and do `cd graphics && zip -9r ../graphics.zip .` + * and rename the graphics/ subfolder - and still all your files + * are found: a filepath like X/shared/graphics/game/greetings.bmp + * will open X/shared/graphics.zip and return the zipped file + * game/greetings.bmp in the zip-archive (for reading that is). + * + */ + +#ifndef _SDL_RWops_ZZIP_h +#define _SDL_RWops_ZZIP_h + +#include + +#ifndef ZZIP_NO_DECLSPEC +#define ZZIP_DECLSPEC +#else /* use DECLSPEC from SDL/begin_code.h */ +#define ZZIP_DECLSPEC DECLSPEC +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +extern ZZIP_DECLSPEC +SDL_RWops *SDL_RWFromZZIP(const char* file, const char* mode); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif -- 2.40.0