diff options
author | truelight <truelight@openttd.org> | 2007-09-13 18:46:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-09-13 18:46:29 +0000 |
commit | b84bd3cd1caf1c4b1fb534433e8a83bc789bf424 (patch) | |
tree | 76979ef1579da87b2a015a8ddcae8cfc90a27748 /src/fileio.h | |
parent | 45a1ad524adc969cac39a03d83f6369b6a5d917e (diff) | |
download | openttd-b84bd3cd1caf1c4b1fb534433e8a83bc789bf424.tar.xz |
(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
Diffstat (limited to 'src/fileio.h')
-rw-r--r-- | src/fileio.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |