equal
deleted
inserted
replaced
56 static uint32 _spritecache_size; |
56 static uint32 _spritecache_size; |
57 static int _compact_cache_counter; |
57 static int _compact_cache_counter; |
58 |
58 |
59 typedef struct MD5File { |
59 typedef struct MD5File { |
60 const char * const filename; // filename |
60 const char * const filename; // filename |
61 const md5_byte_t const hash[16]; // md5 sum of the file |
61 const md5_byte_t hash[16]; // md5 sum of the file |
62 } MD5File; |
62 } MD5File; |
63 |
63 |
64 typedef struct FileList { |
64 typedef struct FileList { |
65 const MD5File basic[4]; // grf files that always have to be loaded |
65 const MD5File basic[4]; // grf files that always have to be loaded |
66 const MD5File landscape[3]; // landscape specific grf files |
66 const MD5File landscape[3]; // landscape specific grf files |
772 * returns true if the checksum is correct */ |
772 * returns true if the checksum is correct */ |
773 static bool FileMD5(const MD5File file, bool warn) |
773 static bool FileMD5(const MD5File file, bool warn) |
774 { |
774 { |
775 FILE *f; |
775 FILE *f; |
776 char buf[MAX_PATH]; |
776 char buf[MAX_PATH]; |
777 byte *s; |
|
778 |
777 |
779 md5_state_t filemd5state; |
778 md5_state_t filemd5state; |
780 int len=0; |
779 int len=0; |
781 md5_byte_t buffer[1024], digest[16]; |
780 md5_byte_t buffer[1024], digest[16]; |
782 |
781 |