[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.404,1.405

Travis Howell kirben at users.sourceforge.net
Tue Dec 30 18:04:02 CET 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv16168/simon

Modified Files:
	simon.cpp 
Log Message:

Add some md5 checksums of files for Simon1/2 games.


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.404
retrieving revision 1.405
diff -u -d -r1.404 -r1.405
--- simon.cpp	30 Dec 2003 00:37:00 -0000	1.404
+++ simon.cpp	31 Dec 2003 02:03:17 -0000	1.405
@@ -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 @@
 	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())





More information about the Scummvm-git-logs mailing list