diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-01 11:57:21 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-01 11:57:21 +0000 |
commit | ac349965467725bf4b9690994733cc2b6694cdd4 (patch) | |
tree | de14d4a0824739e76c0f7e5acd320b59414be521 /src/common/grfio.h | |
parent | d90b9f6768e9e33efc97d769f24fe0315da683ac (diff) | |
download | hercules-ac349965467725bf4b9690994733cc2b6694cdd4.tar.gz hercules-ac349965467725bf4b9690994733cc2b6694cdd4.tar.bz2 hercules-ac349965467725bf4b9690994733cc2b6694cdd4.tar.xz hercules-ac349965467725bf4b9690994733cc2b6694cdd4.zip |
* Fixed an overflow in grfio
* Changed resnametable loading behaviour
* Increased grfio filelist limit to 1048576
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5152 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/grfio.h')
-rw-r--r-- | src/common/grfio.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/grfio.h b/src/common/grfio.h index a7faafc1c..aba9db391 100644 --- a/src/common/grfio.h +++ b/src/common/grfio.h @@ -6,16 +6,15 @@ void grfio_init(char*); // GRFIO Initialize
void grfio_final(void); // GRFIO Finalize
-int grfio_add(char*); // GRFIO Resource file add
-void* grfio_read(char*); // GRFIO data file read
void* grfio_reads(char*,int*); // GRFIO data file read & size get
+
+#define grfio_read(fn) grfio_reads(fn, NULL)
+
int grfio_size(char*); // GRFIO data file size get
unsigned long grfio_crc32(const char *buf, unsigned int len);
int decode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
int encode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
-int decode_file (FILE *source, FILE *dest);
-
int deflate_file (const char *source, const char *filename);
#endif // _GRFIO_H_
|