[Scummvm-git-logs] scummvm master -> 59c99d72e276518287bc742a63f8c87118204046
sev-
noreply at scummvm.org
Mon Jul 7 09:49:48 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
59c99d72e2 GLK: Enable detection entries dumping code
Commit: 59c99d72e276518287bc742a63f8c87118204046
https://github.com/scummvm/scummvm/commit/59c99d72e276518287bc742a63f8c87118204046
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-07-07T11:48:15+02:00
Commit Message:
GLK: Enable detection entries dumping code
The code is not going to work since it is a lossy, and the file
extensions are absent in all engines. Thus, we will implement
special handling code in the Integrity Service
Changed paths:
engines/glk/detection.cpp
diff --git a/engines/glk/detection.cpp b/engines/glk/detection.cpp
index 697c7631f43..74c365fe75a 100644
--- a/engines/glk/detection.cpp
+++ b/engines/glk/detection.cpp
@@ -317,7 +317,7 @@ uint GlkMetaEngineDetection::getMD5Bytes() const {
}
void GlkMetaEngineDetection::dumpDetectionEntries() const {
-#if 0
+#if 1
enum class EngineName : uint8 {
COMPREHEND,
LEVEL9,
@@ -348,7 +348,7 @@ void GlkMetaEngineDetection::dumpDetectionEntries() const {
{ Glk::TADS::TADSMetaEngine::getDetectionEntries(), EngineName::OTHER },
{ nullptr, EngineName::OTHER }
};
-
+
for (const Detection *detection = detectionEntries; detection->entries; ++detection) {
EngineName engineName = detection->engineName;
@@ -368,17 +368,17 @@ void GlkMetaEngineDetection::dumpDetectionEntries() const {
Common::String checksum = entry->_md5;
- // Filename for Comprehend Engine's md5 is stored in the extra field.
+ // Filename for Comprehend Engine's md5 is stored in the extra field.
// For other engines, filename is not available, so it has been kept as the gameId
const char *fname = engineName == EngineName::COMPREHEND ? entry->_extra : entry->_gameId;
- // Level9 engine does not use md5 checksums, so checksums are not printed.
+ // Level9 engine does not use md5 checksums, so checksums are not printed.
if (engineName == EngineName::LEVEL9) {
printf("\trom ( name \"%s\" size %lld )\n", escapeString(fname).c_str(), static_cast<long long int>(entry->_filesize));
} else {
printf("\trom ( name \"%s\" size %lld md5-%d %s )\n", escapeString(fname).c_str(), static_cast<long long int>(entry->_filesize), getMD5Bytes(), checksum.c_str());
}
-
+
printf(")\n\n");
}
}
More information about the Scummvm-git-logs
mailing list