diff options
author | rubidium <rubidium@openttd.org> | 2011-08-24 13:42:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-24 13:42:06 +0000 |
commit | 2a12c9df2ff36a5ad7f6e5c84438ac5571f6ba8c (patch) | |
tree | feedc3017e18e5f5647b81530bb0239ff4c151dc /src/fileio.cpp | |
parent | 05300a00b1c82b1c411b38fb024a6decfefce4f8 (diff) | |
download | openttd-2a12c9df2ff36a5ad7f6e5c84438ac5571f6ba8c.tar.xz |
(svn r22825) -Codechange: pass subdir to FioOpenFile
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 4bc475857..d2b3c7fc2 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -237,15 +237,16 @@ static void FioFreeHandle() * Open a slotted file. * @param slot Index to assign. * @param filename Name of the file at the disk. - */ -void FioOpenFile(int slot, const char *filename) + * @param subdir The sub directory to search this file in. + */ +void FioOpenFile(int slot, const char *filename, Subdirectory subdir) { FILE *f; #if defined(LIMITED_FDS) FioFreeHandle(); #endif /* LIMITED_FDS */ - f = FioFOpenFile(filename); + f = FioFOpenFile(filename, "rb", subdir); if (f == NULL) usererror("Cannot open file '%s'", filename); uint32 pos = ftell(f); |