diff options
author | Max Horn | 2010-06-22 16:09:50 +0000 |
---|---|---|
committer | Max Horn | 2010-06-22 16:09:50 +0000 |
commit | 33347e12bd94552a0c100351747b6c693d144f68 (patch) | |
tree | 4b8df950159c545e7c50c5762ee12eb85e88dd49 /engines | |
parent | 90a1d7c609760830fb9c94c574c2f7c6aa694321 (diff) | |
download | scummvm-rg350-33347e12bd94552a0c100351747b6c693d144f68.tar.gz scummvm-rg350-33347e12bd94552a0c100351747b6c693d144f68.tar.bz2 scummvm-rg350-33347e12bd94552a0c100351747b6c693d144f68.zip |
SCUMM: Add a debug message to detectGames() to help find filesizes of detection files
svn-id: r50150
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/detection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index f509cabb2c..dbd86505a8 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -488,6 +488,12 @@ static void detectGames(const Common::FSList &fslist, Common::List<DetectorResul // 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); |