This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#ifndef LUACRYPAK_H
#define LUACRYPAK_H
//////////////////////////////////////////////////////////////////////////
// really annoying since the LUA library can't link any C++ code...
//#define USE_CRYPAK [marco] do not enable this
#ifdef __cplusplus
extern "C" {
#endif
FILE *CryPakOpen(const char *szFile,const char *szMode);
int CryPakClose(FILE *fp);
int CryPakFFlush(FILE *fp);
int CryPakFSeek(FILE *handle, long seek, int mode);
int CryPakUngetc(int c, FILE *handle);
int CryPakGetc(FILE *handle);
size_t CryPakFRead(void *data, size_t length, size_t elems, FILE *handle);
size_t CryPakFWrite(void *data, size_t length, size_t elems, FILE *handle);
int CryPakFEof(FILE *handle);
int CryPakFScanf(FILE *handle, const char *format, ...);
int CryPakFPrintf(FILE *handle, const char *format, ...);
char *CryPakFGets(char *str, int n, FILE *handle);
#ifdef __cplusplus
}
#endif
#endif