summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-10 01:14:26 +0000
committerdominik <dominik@openttd.org>2005-01-10 01:14:26 +0000
commit49a08e5e38cb00be7da4474b1aead583a234ea3a (patch)
treefe347108b7efcb5f55d1b2ad4f319e3710006c27 /ttd.c
parent9419250a22df42caf7a1237afcefaacf378d35da (diff)
downloadopenttd-49a08e5e38cb00be7da4474b1aead583a234ea3a.tar.xz
(svn r1453) Feature: MD5 hash check for TTD files
The original TTD files are now checked with a MD5 sum to determine which version of the grf files is used and to warn about possible file corruptions. (Thanks to ledow for the original patch)
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index ce245d8d0..d7b9a2614 100644
--- a/ttd.c
+++ b/ttd.c
@@ -545,6 +545,7 @@ void LoadIntroGame()
}
extern void DedicatedFork(void);
+extern void CheckExternalFiles();
int ttd_main(int argc, char* argv[])
{
@@ -638,6 +639,7 @@ int ttd_main(int argc, char* argv[])
}
DeterminePaths();
+ CheckExternalFiles();
#ifdef UNIX
// We must fork here, or we'll end up without some resources we need (like sockets)