X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=fs.h;h=9f01461d7a4b783a89400e7b4199b820e02ab9ec;hp=cf2290fa87e70688eebd10dcb7663d3032aa4efd;hb=2961039d9bd10e9aa838e243728e4b1acb03bb2c;hpb=2cbfd57208b7e0050bf532456dedae601670af88 diff --git a/fs.h b/fs.h index cf2290fa..9f01461d 100644 --- a/fs.h +++ b/fs.h @@ -59,6 +59,7 @@ qboolean FS_AddPack(const char *pakfile, qboolean *already_loaded, qboolean keep const char *FS_WhichPack(const char *filename); qfile_t* FS_OpenRealFile (const char* filepath, const char* mode, qboolean quiet); qfile_t* FS_OpenVirtualFile (const char* filepath, qboolean quiet); +qfile_t* FS_FileFromData (const unsigned char *data, const size_t size, qboolean quiet); int FS_Close (qfile_t* file); fs_offset_t FS_Write (qfile_t* file, const void* data, size_t datasize); fs_offset_t FS_Read (qfile_t* file, void* buffer, size_t buffersize); @@ -112,5 +113,9 @@ qboolean FS_SysFileExists (const char *filename); // only look for files outside void FS_mkdir (const char *path); +unsigned char *FS_Deflate(const unsigned char *data, size_t size, size_t *deflated_size, int level, mempool_t *mempool); +unsigned char *FS_Inflate(const unsigned char *data, size_t size, size_t *inflated_size, mempool_t *mempool); + +qboolean FS_HasZlib(void); #endif