From f87c8834e23188f27cd1fd1626c040d3ebafb998 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 9 Dec 2006 10:56:12 +0000 Subject: (svn r7449) -Codechange: Rename _path to _paths as it is technically more correct, but mainly because it interferes with OS/2 symbol in libc (psmedley) --- fileio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fileio.c') diff --git a/fileio.c b/fileio.c index 2bd01f16d..2a09916ea 100644 --- a/fileio.c +++ b/fileio.c @@ -117,19 +117,19 @@ FILE *FioFOpenFile(const char *filename) FILE *f; char buf[MAX_PATH]; - snprintf(buf, lengthof(buf), "%s%s", _path.data_dir, filename); + snprintf(buf, lengthof(buf), "%s%s", _paths.data_dir, filename); f = fopen(buf, "rb"); #if !defined(WIN32) if (f == NULL) { - strtolower(buf + strlen(_path.data_dir) - 1); + strtolower(buf + strlen(_paths.data_dir) - 1); f = fopen(buf, "rb"); #if defined SECOND_DATA_DIR // tries in the 2nd data directory if (f == NULL) { - snprintf(buf, lengthof(buf), "%s%s", _path.second_data_dir, filename); - strtolower(buf + strlen(_path.second_data_dir) - 1); + snprintf(buf, lengthof(buf), "%s%s", _paths.second_data_dir, filename); + strtolower(buf + strlen(_paths.second_data_dir) - 1); f = fopen(buf, "rb"); } #endif @@ -143,7 +143,7 @@ void FioOpenFile(int slot, const char *filename) { FILE *f = FioFOpenFile(filename); - if (f == NULL) error("Cannot open file '%s%s'", _path.data_dir, filename); + if (f == NULL) error("Cannot open file '%s%s'", _paths.data_dir, filename); FioCloseFile(slot); // if file was opened before, close it _fio.handles[slot] = f; -- cgit v1.2.3-54-g00ecf