[Scummvm-cvs-logs] SF.net SVN: scummvm:[50150] scummvm/trunk/engines/scumm/detection.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Jun 22 18:09:50 CEST 2010
Revision: 50150
http://scummvm.svn.sourceforge.net/scummvm/?rev=50150&view=rev
Author: fingolfin
Date: 2010-06-22 16:09:50 +0000 (Tue, 22 Jun 2010)
Log Message:
-----------
SCUMM: Add a debug message to detectGames() to help find filesizes of detection files
Modified Paths:
--------------
scummvm/trunk/engines/scumm/detection.cpp
Modified: scummvm/trunk/engines/scumm/detection.cpp
===================================================================
--- scummvm/trunk/engines/scumm/detection.cpp 2010-06-22 16:09:27 UTC (rev 50149)
+++ scummvm/trunk/engines/scumm/detection.cpp 2010-06-22 16:09:50 UTC (rev 50150)
@@ -488,6 +488,12 @@
// Exact match found. Compute the precise game settings.
computeGameSettingsFromMD5(fslist, gfp, d.md5Entry, dr);
+ // Print some debug info
+ int filesize = tmp->size();
+ if (d.md5Entry->filesize != filesize)
+ debug(1, "SCUMM detector found matching file '%s' with MD5 %s, size %d\n",
+ file.c_str(), md5str, filesize);
+
// Sanity check: We *should* have found a matching gameid / variant at this point.
// If not, then there's a bug in our data tables...
assert(dr.game.gameid != 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list