]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.h
smoke no longer expands over time (eats fillrate and isn't very realistic)
[xonotic/darkplaces.git] / fs.h
diff --git a/fs.h b/fs.h
index 7af7b039e425aa08bd5407a50712277819a60419..e44a1e89eb641059d22977b2a025d4eb2c864aa5 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -44,7 +44,7 @@ extern int fs_filesize;  // set by FS_Open (in "read" mode) and FS_LoadFile
 // 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
 
-qfile_t *FS_Open (const char* filepath, const char* mode, qboolean quiet);
+qfile_t *FS_Open (const char* filepath, const char* mode, qboolean quiet, qboolean nonblocking);
 int FS_Close (qfile_t* file);
 size_t FS_Write (qfile_t* file, const void* data, size_t datasize);
 size_t FS_Read (qfile_t* file, void* buffer, size_t buffersize);
@@ -52,10 +52,10 @@ int FS_Print(qfile_t* file, const char *msg);
 int FS_Printf(qfile_t* file, const char* format, ...);
 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, long offset, int whence);
 long FS_Tell (qfile_t* file);
-char *FS_Gets (qfile_t* file, char* buffer, size_t buffersize);
-char *FS_Getline (qfile_t *file);  // DO NOT FREE the returned buffer
+void FS_Purge (qfile_t* file);
 
 typedef struct fssearch_s
 {