aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/files.c3
-rw-r--r--code/qcommon/qcommon.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c
index a5efb7e..07ecfac 100644
--- a/code/qcommon/files.c
+++ b/code/qcommon/files.c
@@ -715,7 +715,8 @@ int FS_SV_FOpenFileRead( const char *filename, fileHandle_t *fp ) {
if (f) {
return FS_filelength(f);
}
- return 0;
+
+ return -1;
}
diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h
index 8746f3b..396042e 100644
--- a/code/qcommon/qcommon.h
+++ b/code/qcommon/qcommon.h
@@ -583,6 +583,7 @@ int FS_GetFileList( const char *path, const char *extension, char *listbuf, in
int FS_GetModList( char *listbuf, int bufsize );
fileHandle_t FS_FOpenFileWrite( const char *qpath );
+fileHandle_t FS_FOpenFileAppend( const char *filename );
// will properly create any needed paths and deal with seperater character issues
int FS_filelength( fileHandle_t f );