X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=fs.h;h=9ed0b5114cf2c22c236758cf586f9221634f8ce0;hb=2f70889e776978ab1746211afc7723e04140fe4b;hp=5589af7a75652a4b6f2cd8cd07a76578f744ee4e;hpb=dc41e44e117b30d3357eeddfcf89a61dff9e3b7a;p=xonotic%2Fdarkplaces.git diff --git a/fs.h b/fs.h index 5589af7a..9ed0b511 100644 --- a/fs.h +++ b/fs.h @@ -44,6 +44,10 @@ typedef long long fs_offset_t; extern char fs_gamedir [MAX_OSPATH]; extern char fs_basedir [MAX_OSPATH]; +// list of active game directories (empty if not running a mod) +#define MAX_GAMEDIRS 16 +extern int fs_numgamedirs; +extern char fs_gamedirs[MAX_GAMEDIRS][MAX_QPATH]; // ------ Main functions ------ // @@ -64,9 +68,16 @@ int FS_Getc (qfile_t* file); int FS_UnGetc (qfile_t* file, unsigned char c); int FS_Seek (qfile_t* file, fs_offset_t offset, int whence); fs_offset_t FS_Tell (qfile_t* file); +fs_offset_t FS_FileSize (qfile_t* file); void FS_Purge (qfile_t* file); +const char *FS_FileWithoutPath (const char *in); +const char *FS_FileExtension (const char *in); int FS_CheckNastyPath (const char *path, qboolean isgamedir); -qboolean FS_ChangeGameDir(const char *string); +qboolean FS_CheckGameDir(const char *gamedir); +qboolean FS_ChangeGameDirs(int numgamedirs, char gamedirs[][MAX_QPATH], qboolean complain, qboolean failmissing); +qboolean FS_IsRegisteredQuakePack(const char *name); +int FS_CRCFile(const char *filename, size_t *filesizepointer); +void FS_Rescan(void); typedef struct fssearch_s {