From 123d4dae0bf14a2103ab0202717eb1527b35e906 Mon Sep 17 00:00:00 2001 From: Die4Ever <30947252+Die4Ever@users.noreply.github.com> Date: Thu, 16 Sep 2021 03:38:02 -0500 Subject: [PATCH] COMMON: logging hashes when starting a game (#3372) I figure this would be helpful when people submit their log files, so we know what version of the game they're running. --- engines/advancedDetector.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index 78be137b21a..c668ed0acea 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -418,7 +418,10 @@ Common::Error AdvancedMetaEngineDetection::createInstance(OSystem *syst, Engine return Common::kUserCanceled; } - debugC(2, kDebugGlobalDetection, "Running %s", gameDescriptor.description.c_str()); + debug("Running %s", gameDescriptor.description.c_str()); + for (FilePropertiesMap::const_iterator i = gameDescriptor.matchedFiles.begin(); i != gameDescriptor.matchedFiles.end(); ++i) { + debug("%s: %s, %llu bytes.", i->_key.c_str(), i->_value.md5.c_str(), (unsigned long long)i->_value.size); + } initSubSystems(agdDesc.desc); PluginList pl = EngineMan.getPlugins(PLUGIN_TYPE_ENGINE);