(svn r22824) -Codechange: pass sub directory to ini loading
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user