From a53e00597bdab2ffc1496f672010d9f51e69b991 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Jun 2019 12:42:00 -0700 Subject: GLK: Show unknown variant dialog for unknown detection entries --- engines/glk/magnetic/detection.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'engines/glk/magnetic') diff --git a/engines/glk/magnetic/detection.cpp b/engines/glk/magnetic/detection.cpp index 83d1143dd0..1552eec77a 100644 --- a/engines/glk/magnetic/detection.cpp +++ b/engines/glk/magnetic/detection.cpp @@ -81,13 +81,15 @@ bool MagneticMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames DetectedGame gd; if (!p->_gameId) { - if (gDebugLevel > 0) { - // Print an entry suitable for putting into the detection_tables.h - debug("ENTRY0(\"%s\", \"%s\", %u),", filename.c_str(), md5.c_str(), (uint)filesize); - } - const PlainGameDescriptor &desc = MAGNETIC_GAME_LIST[0]; gd = DetectedGame(desc.gameId, desc.description, Common::UNK_LANG, Common::kPlatformUnknown); + gd.canBeAdded = true; + gd.hasUnknownFiles = true; + FileProperties fp; + fp.md5 = md5; + fp.size = filesize; + gd.matchedFiles[filename] = fp; + } else { PlainGameDescriptor gameDesc = findGame(p->_gameId); gd = DetectedGame(p->_gameId, gameDesc.description, p->_language, Common::kPlatformUnknown, p->_extra); -- cgit v1.2.3