summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-07-31 22:15:39 +0000
committerDarkvater <darkvater@openttd.org>2006-07-31 22:15:39 +0000
commit7b95782c9de2460f491b1f62cbfa1b3bbafd81cd (patch)
tree3b7a496805b14738b8a8b816db82a0ea424631b3
parentcef563141a3f1bfe8d8f2bf5211598df57e4ec0f (diff)
downloadopenttd-7b95782c9de2460f491b1f62cbfa1b3bbafd81cd.tar.xz
(svn r5685) - Codechange: s/FiosCheckFileExists/FioCheckFileExists/ to unify the naming of these functions.
-rw-r--r--fileio.c2
-rw-r--r--fileio.h2
-rw-r--r--newgrf.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/fileio.c b/fileio.c
index 4d2e800cc..704b64330 100644
--- a/fileio.c
+++ b/fileio.c
@@ -103,7 +103,7 @@ void FioCloseAll(void)
FioCloseFile(i);
}
-bool FiosCheckFileExists(const char *filename)
+bool FioCheckFileExists(const char *filename)
{
FILE *f;
char buf[MAX_PATH];
diff --git a/fileio.h b/fileio.h
index 926c986be..6ee58b32c 100644
--- a/fileio.h
+++ b/fileio.h
@@ -14,6 +14,6 @@ FILE *FioFOpenFile(const char *filename);
void FioOpenFile(int slot, const char *filename);
void FioReadBlock(void *ptr, uint size);
void FioSkipBytes(int n);
-bool FiosCheckFileExists(const char *filename);
+bool FioCheckFileExists(const char *filename);
#endif /* FILEIO_H */
diff --git a/newgrf.c b/newgrf.c
index b1cd9a20c..0cd835ac2 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2996,7 +2996,7 @@ void LoadNewGRF(uint load_index, uint file_index)
_cur_stage = stage;
_cur_spriteid = load_index;
for (c = _first_grfconfig; c != NULL; c = c->next) {
- if (!FiosCheckFileExists(c->filename)) {
+ if (!FioCheckFileExists(c->filename)) {
// TODO: usrerror()
error("NewGRF file missing: %s", c->filename);
}