summaryrefslogtreecommitdiff
path: root/src/base_media_base.h
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-06-07 21:34:24 +0200
committerMichael Lutz <michi@icosahedron.de>2018-06-15 23:09:17 +0200
commit5ab06ef8a3a5291ddc9bbee7f73f04bd077272e0 (patch)
treec1760bdf0e54c1bf8c519a0457078f621050f230 /src/base_media_base.h
parenta1b7812c7e5e7a25a9eb51fd397b19606451f8e6 (diff)
downloadopenttd-5ab06ef8a3a5291ddc9bbee7f73f04bd077272e0.tar.xz
Fix: Don't complain if CAT music files are missing entirely
Just complain if an index into a CAT file that exists is invalid.
Diffstat (limited to 'src/base_media_base.h')
-rw-r--r--src/base_media_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base_media_base.h b/src/base_media_base.h
index 891ce4fb9..b040abcf9 100644
--- a/src/base_media_base.h
+++ b/src/base_media_base.h
@@ -26,6 +26,7 @@ struct ContentInfo;
struct MD5File {
/** The result of a checksum check */
enum ChecksumResult {
+ CR_UNKNOWN, ///< The file has not been checked yet
CR_MATCH, ///< The file did exist and the md5 checksum did match
CR_MISMATCH, ///< The file did exist, just the md5 checksum did not match
CR_NO_FILE, ///< The file did not exist
@@ -34,6 +35,7 @@ struct MD5File {
const char *filename; ///< filename
uint8 hash[16]; ///< md5 sum of the file
const char *missing_warning; ///< warning when this file is missing
+ ChecksumResult check_result; ///< cached result of md5 check
ChecksumResult CheckMD5(Subdirectory subdir, size_t max_size) const;
};