summaryrefslogtreecommitdiff
path: root/gfxinit.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-24 10:15:56 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-24 10:15:56 +0000
commite08dfce57ccff647a008a30393cb4e16d66e30d0 (patch)
treeeafe99baefc4560ffa827ce94db0bf3a3088595f /gfxinit.c
parent736e3597b506c55899c4b318fb7f935af3be58a1 (diff)
downloadopenttd-e08dfce57ccff647a008a30393cb4e16d66e30d0.tar.xz
(svn r6921) - PEBKAC: Add an MD5 sum check of our own data files, and warn if they don't match.
Diffstat (limited to 'gfxinit.c')
-rw-r--r--gfxinit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfxinit.c b/gfxinit.c
index ffd154855..beab3b08d 100644
--- a/gfxinit.c
+++ b/gfxinit.c
@@ -161,6 +161,12 @@ void CheckExternalFiles(void)
if (!FileMD5(sample_cat_win, false) && !FileMD5(sample_cat_dos, false))
fprintf(stderr, "Your sample.cat file is corrupted or missing!\n");
+ 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);
+ }
+ }
+
/*
* forced DOS palette via command line -> leave it that way
* all Windows files present -> Windows palette