(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.
This commit is contained in:
Darkvater
2007-01-09 21:25:13 +00:00
parent 44e9bc600c
commit c5867c93f7
6 changed files with 8 additions and 9 deletions

View File

@@ -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);
}
}