diff options
author | rubidium <rubidium@openttd.org> | 2011-08-24 13:38:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-08-24 13:38:26 +0000 |
commit | 05300a00b1c82b1c411b38fb024a6decfefce4f8 (patch) | |
tree | f13b4b5eb198dac31d5de390bd0041f0fa8e4746 /src/ini.cpp | |
parent | 5f06d5067f861031dedd8de0ce0d21cd6f70a9a7 (diff) | |
download | openttd-05300a00b1c82b1c411b38fb024a6decfefce4f8.tar.xz |
(svn r22824) -Codechange: pass sub directory to ini loading
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index 016e382c9..fe49f5fe7 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -111,11 +111,11 @@ bool IniFile::SaveToDisk(const char *filename) return true; } -/* virtual */ FILE *IniFile::OpenFile(const char *filename, size_t *size) +/* virtual */ FILE *IniFile::OpenFile(const char *filename, Subdirectory subdir, size_t *size) { /* Open the text file in binary mode to prevent end-of-line translations * done by ftell() and friends, as defined by K&R. */ - return FioFOpenFile(filename, "rb", BASESET_DIR, size); + return FioFOpenFile(filename, "rb", subdir, size); } /* virtual */ void IniFile::ReportFileError(const char * const pre, const char * const buffer, const char * const post) |