]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.h
added "sv_saveentfile" command to allow easy dumping of .ent files from maps so they...
[xonotic/darkplaces.git] / fs.h
diff --git a/fs.h b/fs.h
index 43a168373b77e17c75bb0eff014d83c81c8e604a..97ef0301a248a14d6e4ba9a20a38ea8d18a664a2 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -57,6 +57,18 @@ char *FS_Gets (qfile_t* file, char* buffer, int buffersize);
 char *FS_Getline (qfile_t *file);  // DO NOT FREE the returned buffer
 int FS_Eof (qfile_t* file);
 
+typedef struct fssearch_s
+{
+       int numfilenames;
+       char **filenames;
+       // array of filenames
+       char *filenamesbuffer;
+}
+fssearch_t;
+
+fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet);
+void FS_FreeSearch(fssearch_t *search);
+
 qbyte *FS_LoadFile (const char *path, qboolean quiet);
 qboolean FS_WriteFile (const char *filename, void *data, int len);