aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2003-12-31 02:03:17 +0000
committerTravis Howell2003-12-31 02:03:17 +0000
commit71c20c698cc84081723686fcee38170a115cea0a (patch)
treea807b876f61f855aeb39bf88aa3611838aea80f4 /simon
parent49c67f4d200283dbf8a4baca136cf2ef35f02fa1 (diff)
downloadscummvm-rg350-71c20c698cc84081723686fcee38170a115cea0a.tar.gz
scummvm-rg350-71c20c698cc84081723686fcee38170a115cea0a.tar.bz2
scummvm-rg350-71c20c698cc84081723686fcee38170a115cea0a.zip
Add some md5 checksums of files for Simon1/2 games.
svn-id: r12047
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 97d616e95b..5aab6804e1 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -28,6 +28,7 @@
#include "common/config-manager.h"
#include "common/file.h"
+#include "common/md5.h"
#include "gui/about.h"
#include "gui/message.h"
@@ -528,6 +529,18 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
memcpy (_hebrew_char_widths,
"\x5\x5\x4\x6\x5\x3\x4\x5\x6\x3\x5\x5\x4\x6\x5\x3\x4\x6\x5\x6\x6\x6\x5\x5\x5\x6\x5\x6\x6\x6\x6\x6", 32);
+ char buf[50];
+ uint8 md5sum[16];
+
+ if (_game & GF_OLD_BUNDLE)
+ sprintf(buf, gss->gamepc_filename);
+ else
+ sprintf(buf, gss->gme_filename);
+ if (md5_file(buf, md5sum)) {
+ for (int j = 0; j < 16; j++)
+ printf("%02x", md5sum[j]);
+ printf(" %s\n", buf);
+ }
// Setup mixer
if (!_mixer->isReady())