]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.h
patch from div0 that allows loading new pak/pk3 archives while running
[xonotic/darkplaces.git] / fs.h
diff --git a/fs.h b/fs.h
index a55df4b7f637d7cbcc53f11e9daeae52a6de48dc..c65b8525808f4496f0fc876a080c919ff896b2c0 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -51,6 +51,8 @@ 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);