summaryrefslogtreecommitdiff
path: root/newgrf_config.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-09 10:56:12 +0000
committerDarkvater <darkvater@openttd.org>2006-12-09 10:56:12 +0000
commitf87c8834e23188f27cd1fd1626c040d3ebafb998 (patch)
tree821bb8da5168e61028bf8fc5f43ea46f076a70e9 /newgrf_config.c
parent9a0917141b99cea7703e28af3c46cdbc86f23629 (diff)
downloadopenttd-f87c8834e23188f27cd1fd1626c040d3ebafb998.tar.xz
(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)
Diffstat (limited to 'newgrf_config.c')
-rw-r--r--newgrf_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newgrf_config.c b/newgrf_config.c
index db8440c0a..aecdf4055 100644
--- a/newgrf_config.c
+++ b/newgrf_config.c
@@ -39,7 +39,7 @@ static bool CalcGRFMD5Sum(GRFConfig *config)
size_t len;
/* open the file */
- snprintf(filename, lengthof(filename), "%s%s", _path.data_dir, config->filename);
+ snprintf(filename, lengthof(filename), "%s%s", _paths.data_dir, config->filename);
f = fopen(filename, "rb");
if (f == NULL) return false;
@@ -176,7 +176,7 @@ static uint ScanPath(const char *path)
} else if (sb.st_mode & S_IFREG) {
/* File */
char *ext = strrchr(filename, '.');
- char *file = filename + strlen(_path.data_dir) + 1; // Crop base path
+ char *file = filename + strlen(_paths.data_dir) + 1; // Crop base path
/* If no extension or extension isn't .grf, skip the file */
if (ext == NULL) continue;
@@ -226,7 +226,7 @@ void ScanNewGRFFiles(void)
_all_grfs = NULL;
DEBUG(grf, 1) ("[GRF] Scanning for NewGRFs");
- num = ScanPath(_path.data_dir);
+ num = ScanPath(_paths.data_dir);
DEBUG(grf, 1) ("[GRF] Scan complete, found %d files", num);
}