diff options
author | rubidium <rubidium@openttd.org> | 2011-08-24 13:53:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-24 13:53:34 +0000 |
commit | b4edc30c64b98d35fd35eb53eccd52bfc039c1f7 (patch) | |
tree | 4deef2b9a21ab44ef83f59d847bbb883dc34a540 /src/fileio_func.h | |
parent | 8e5f433b22a36b2210c4e7386b476382afad7dd6 (diff) | |
download | openttd-b4edc30c64b98d35fd35eb53eccd52bfc039c1f7.tar.xz |
(svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r-- | src/fileio_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h index 475b89814..162ad3b1c 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -48,8 +48,8 @@ static inline bool IsValidSearchPath(Searchpath sp) #define FOR_ALL_SEARCHPATHS(sp) for (sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) if (IsValidSearchPath(sp)) void FioFCloseFile(FILE *f); -FILE *FioFOpenFile(const char *filename, const char *mode = "rb", Subdirectory subdir = NEWGRF_DIR, size_t *filesize = NULL); -bool FioCheckFileExists(const char *filename, Subdirectory subdir = NEWGRF_DIR); +FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, size_t *filesize = NULL); +bool FioCheckFileExists(const char *filename, Subdirectory subdir); 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); char *FioAppendDirectory(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir); |