aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/md5.cpp4
-rw-r--r--common/md5.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/common/md5.cpp b/common/md5.cpp
index 39ef1f3e13..1962f8cb94 100644
--- a/common/md5.cpp
+++ b/common/md5.cpp
@@ -233,6 +233,10 @@ void md5_finish(md5_context *ctx, uint8 digest[16]) {
PUT_UINT32(ctx->state[3], digest, 12);
}
+bool md5_file(const FilesystemNode &file, uint8 digest[16], uint32 length) {
+ return md5_file(file.path().c_str(), digest, length);
+}
+
bool md5_file(const char *name, uint8 digest[16], uint32 length) {
File f;
diff --git a/common/md5.h b/common/md5.h
index b8e4a95464..b4b852b5c6 100644
--- a/common/md5.h
+++ b/common/md5.h
@@ -23,6 +23,7 @@
#define COMMON_MD5_H
#include "common/scummsys.h"
+#include "common/fs.h"
namespace Common {
@@ -37,6 +38,7 @@ void md5_update(md5_context *ctx, const uint8 *input, uint32 length);
void md5_finish(md5_context *ctx, uint8 digest[16]);
bool md5_file(const char *name, uint8 digest[16], uint32 length = 0);
+bool md5_file(const FilesystemNode &file, uint8 digest[16], uint32 length = 0);
} // End of namespace Common