mirror of https://github.com/OpenTTD/OpenTTD
(svn r5685) - Codechange: s/FiosCheckFileExists/FioCheckFileExists/ to unify the naming of these functions.
parent
cef563141a
commit
7b95782c9d
2
fileio.c
2
fileio.c
|
@ -103,7 +103,7 @@ void FioCloseAll(void)
|
||||||
FioCloseFile(i);
|
FioCloseFile(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FiosCheckFileExists(const char *filename)
|
bool FioCheckFileExists(const char *filename)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[MAX_PATH];
|
char buf[MAX_PATH];
|
||||||
|
|
2
fileio.h
2
fileio.h
|
@ -14,6 +14,6 @@ FILE *FioFOpenFile(const char *filename);
|
||||||
void FioOpenFile(int slot, const char *filename);
|
void FioOpenFile(int slot, const char *filename);
|
||||||
void FioReadBlock(void *ptr, uint size);
|
void FioReadBlock(void *ptr, uint size);
|
||||||
void FioSkipBytes(int n);
|
void FioSkipBytes(int n);
|
||||||
bool FiosCheckFileExists(const char *filename);
|
bool FioCheckFileExists(const char *filename);
|
||||||
|
|
||||||
#endif /* FILEIO_H */
|
#endif /* FILEIO_H */
|
||||||
|
|
2
newgrf.c
2
newgrf.c
|
@ -2996,7 +2996,7 @@ void LoadNewGRF(uint load_index, uint file_index)
|
||||||
_cur_stage = stage;
|
_cur_stage = stage;
|
||||||
_cur_spriteid = load_index;
|
_cur_spriteid = load_index;
|
||||||
for (c = _first_grfconfig; c != NULL; c = c->next) {
|
for (c = _first_grfconfig; c != NULL; c = c->next) {
|
||||||
if (!FiosCheckFileExists(c->filename)) {
|
if (!FioCheckFileExists(c->filename)) {
|
||||||
// TODO: usrerror()
|
// TODO: usrerror()
|
||||||
error("NewGRF file missing: %s", c->filename);
|
error("NewGRF file missing: %s", c->filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue