]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.h
tolerate clients living up to one frame in the future, just to be more flexible with...
[xonotic/darkplaces.git] / fs.h
diff --git a/fs.h b/fs.h
index a55df4b7f637d7cbcc53f11e9daeae52a6de48dc..c790e7340b3e4e5bd51a9e8e4ff50fc72c3da975 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -51,18 +51,29 @@ extern char fs_basedir [MAX_OSPATH];
 // 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);
 fs_offset_t FS_Read (qfile_t* file, void* buffer, size_t buffersize);
 int FS_Print(qfile_t* file, const char *msg);
-int FS_Printf(qfile_t* file, const char* format, ...);
+int FS_Printf(qfile_t* file, const char* format, ...) DP_FUNC_PRINTF(2);
 int FS_VPrintf(qfile_t* file, const char* format, va_list ap);
 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_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
 {