(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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user