X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=fs.h;h=cd1979a2939bb424550931e285cc1d1c8ed69200;hb=fa561c1a0e1f754cab309168853a0e3b253081c8;hp=42be6a7b6a65244e1d9952403cdb916d99f7e33e;hpb=c3edd749ac26c6322eafa8303e592df3c32ffd25;p=xonotic%2Fdarkplaces.git diff --git a/fs.h b/fs.h index 42be6a7b..cd1979a2 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); @@ -133,4 +136,9 @@ unsigned char *FS_Inflate(const unsigned char *data, size_t size, size_t *inflat qboolean FS_HasZlib(void); +void FS_Init_SelfPack(void); +void FS_Init(void); +void FS_Shutdown(void); +void FS_Init_Commands(void); + #endif