AD: Improved debug output

This commit is contained in:
Eugene Sandulenko 2021-11-06 17:50:25 +02:00
parent 74baaf020b
commit 9e1edd78ca
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -496,6 +496,7 @@ namespace Common {
DECLARE_SINGLETON(MD5CacheManager);
}
// Sync with engines/game.cpp
static char flagsToMD5Prefix(uint32 flags) {
if (flags & ADGF_MACRESFORK) {
if (flags & ADGF_TAILMD5)
@ -575,7 +576,7 @@ ADDetectedGames AdvancedMetaEngineDetection::detectGame(const Common::FSNode &pa
const ADGameDescription *g;
const byte *descPtr;
debugC(3, kDebugGlobalDetection, "Starting detection in dir '%s'", parent.getPath().c_str());
debugC(3, kDebugGlobalDetection, "Starting detection for engine '%s' in dir '%s'", getEngineId(), parent.getPath().c_str());
// Check which files are included in some ADGameDescription *and* whether
// they are present. Compute MD5s and file sizes for the available files.
@ -691,6 +692,8 @@ ADDetectedGames AdvancedMetaEngineDetection::detectGame(const Common::FSNode &pa
}
}
debugC(2, "Totally found %d matches", matched.size());
return matched;
}