diff options
author | Max Horn | 2009-11-23 22:30:22 +0000 |
---|---|---|
committer | Max Horn | 2009-11-23 22:30:22 +0000 |
commit | 6b8dd7ab7af6353f656ece14fe13c6cc4a93c5e3 (patch) | |
tree | ad77e0b705af0f8703a8fc987175ceb20cde5dc2 /engines/scumm/detection.cpp | |
parent | 3d342bec3c099039efe2452b08ea525002eac7b2 (diff) | |
download | scummvm-rg350-6b8dd7ab7af6353f656ece14fe13c6cc4a93c5e3.tar.gz scummvm-rg350-6b8dd7ab7af6353f656ece14fe13c6cc4a93c5e3.tar.bz2 scummvm-rg350-6b8dd7ab7af6353f656ece14fe13c6cc4a93c5e3.zip |
COMMON: Remove various variants of the md5_file / md5_file_string funcs; turned the (disabled) MD5 test code into a working unit test
svn-id: r46108
Diffstat (limited to 'engines/scumm/detection.cpp')
-rw-r--r-- | engines/scumm/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index 4d984caa6d..c23d8a5529 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -378,7 +378,8 @@ static void detectGames(const Common::FSList &fslist, Common::List<DetectorResul // DetectorDesc &d = fileMD5Map[file]; if (d.md5.empty()) { - if (Common::md5_file_string(d.node, md5str, kMD5FileSizeLimit)) { + Common::File tmp; + if (tmp.open(d.node) && Common::md5_file_string(tmp, md5str, kMD5FileSizeLimit)) { d.md5 = md5str; d.md5Entry = findInMD5Table(md5str); |