From b84bd3cd1caf1c4b1fb534433e8a83bc789bf424 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 13 Sep 2007 18:46:29 +0000 Subject: (svn r11099) -Codechange: allow on opening of a file via FioFOpenFile to request the size of the file, so we can keep that in mind --- src/fileio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileio.h') diff --git a/src/fileio.h b/src/fileio.h index a12c01e65..a5333653b 100644 --- a/src/fileio.h +++ b/src/fileio.h @@ -73,7 +73,7 @@ static inline bool IsValidSearchPath(Searchpath sp) /** Iterator for all the search paths */ #define FOR_ALL_SEARCHPATHS(sp) for (sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) if (IsValidSearchPath(sp)) -FILE *FioFOpenFile(const char *filename, const char *mode = "rb", Subdirectory subdir = DATA_DIR); +FILE *FioFOpenFile(const char *filename, const char *mode = "rb", Subdirectory subdir = DATA_DIR, size_t *filesize = NULL); bool FioCheckFileExists(const char *filename, Subdirectory subdir = DATA_DIR); char *FioGetFullPath(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir, const char *filename); char *FioFindFullPath(char *buf, size_t buflen, Subdirectory subdir, const char *filename); -- cgit v1.2.3-54-g00ecf