summaryrefslogtreecommitdiff
path: root/src/gfxinit.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-09 21:25:13 +0000
committerDarkvater <darkvater@openttd.org>2007-01-09 21:25:13 +0000
commit6c3187213d174617ddbd89b2c70da86f71c5f906 (patch)
tree275ce019147376c73a22d33b7d42d17f53321b9f /src/gfxinit.c
parentfe1ac3c5d17a2017a92c0661eed136bd8812411e (diff)
downloadopenttd-6c3187213d174617ddbd89b2c70da86f71c5f906.tar.xz
(svn r8013) -Codechange (r6921, rUnknown): Show the error message of corrupt or missing (own) files
through a ShowInfo(F). This way windows users also see this message and bugs such as FS#528 will not happen anymore. Put ShowInfo(F) error output to stderr and not stdout.
Diffstat (limited to 'src/gfxinit.c')
-rw-r--r--src/gfxinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfxinit.c b/src/gfxinit.c
index cfc7adbc4..4b55ec904 100644
--- a/src/gfxinit.c
+++ b/src/gfxinit.c
@@ -174,11 +174,11 @@ void CheckExternalFiles(void)
for (i = 0; i < 3; i++) if (FileMD5(files_win.landscape[i], true)) win++;
if (!FileMD5(sample_cat_win, false) && !FileMD5(sample_cat_dos, false))
- fprintf(stderr, "Your sample.cat file is corrupted or missing!\n");
+ ShowInfo("Your 'sample.cat' file is corrupted or missing!");
for (i = 0; i < lengthof(files_openttd); i++) {
if (!FileMD5(files_openttd[i], false)) {
- fprintf(stderr, "Your %s file is corrupted or missing!\n", files_openttd[i].filename);
+ ShowInfoF("Your '%s' file is corrupted or missing!", files_openttd[i].filename);
}
}