X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=fs.h;h=7ffba78eab5c028eaa756bec7be349dcdeb4fdcd;hp=f8d813cb1e768afcbe5be399234e0ec871fb1ec2;hb=caf3db73f974fb65d9718eb3cc122e6c6369336a;hpb=64cdb85e04fe54b7614860bd27f7bbd53bdcaedb diff --git a/fs.h b/fs.h index f8d813cb..7ffba78e 100644 --- a/fs.h +++ b/fs.h @@ -43,6 +43,7 @@ typedef long long fs_offset_t; extern char fs_gamedir [MAX_OSPATH]; extern char fs_basedir [MAX_OSPATH]; +extern char fs_userdir [MAX_OSPATH]; // list of active game directories (empty if not running a mod) #define MAX_GAMEDIRS 16 @@ -57,7 +58,9 @@ extern char fs_gamedirs[MAX_GAMEDIRS][MAX_QPATH]; 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); -int FS_SysOpenFD(const char *filepath, const char *mode, qboolean nonblocking); +void FS_CreatePath (char *path); +int FS_SysOpenFD(const char *filepath, const char *mode, qboolean nonblocking); // uses absolute path +qfile_t* FS_SysOpen (const char* filepath, const char* mode, qboolean nonblocking); // uses absolute path 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); @@ -108,7 +111,8 @@ fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet); void FS_FreeSearch(fssearch_t *search); 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); +qboolean FS_WriteFileInBlocks (const char *filename, const void *const *data, const fs_offset_t *len, size_t count); +qboolean FS_WriteFile (const char *filename, const void *data, fs_offset_t len); // ------ Other functions ------ //