X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=fs.h;h=c65b8525808f4496f0fc876a080c919ff896b2c0;hb=158a7b59e0e074680922cfa35eccddd555aa2e31;hp=b0398d722582ccf192cb2500d74e18b78a1beec2;hpb=7c0a94ce469446d270191a82ceba736d867522d5;p=xonotic%2Fdarkplaces.git diff --git a/fs.h b/fs.h index b0398d72..c65b8525 100644 --- a/fs.h +++ b/fs.h @@ -44,7 +44,6 @@ typedef long long fs_offset_t; extern char fs_gamedir [MAX_OSPATH]; extern char fs_basedir [MAX_OSPATH]; -extern fs_offset_t fs_filesize; // set by FS_Open (in "read" mode) and FS_LoadFile // ------ Main functions ------ // @@ -52,6 +51,8 @@ extern fs_offset_t fs_filesize; // set by FS_Open (in "read" mode) and FS_LoadF // IMPORTANT: the file path is automatically prefixed by the current game directory for // each file created by FS_WriteFile, or opened in "write" or "append" mode by FS_Open +qboolean FS_AddPack(const char *pakfile, qboolean *already_loaded, qboolean keep_plain_dirs); // already_loaded may be NULL if caller does not care +const char *FS_WhichPack(const char *filename); qfile_t *FS_Open (const char* filepath, const char* mode, qboolean quiet, qboolean nonblocking); int FS_Close (qfile_t* file); fs_offset_t FS_Write (qfile_t* file, const void* data, size_t datasize); @@ -77,7 +78,7 @@ fssearch_t; fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet); void FS_FreeSearch(fssearch_t *search); -qbyte *FS_LoadFile (const char *path, mempool_t *pool, qboolean quiet); +unsigned char *FS_LoadFile (const char *path, mempool_t *pool, qboolean quiet, fs_offset_t *filesizepointer); qboolean FS_WriteFile (const char *filename, void *data, fs_offset_t len);