aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-23 12:42:00 -0700
committerPaul Gilbert2019-06-23 14:41:49 -0700
commita53e00597bdab2ffc1496f672010d9f51e69b991 (patch)
treec21f808e587134cb4658c61f344332216343ae16 /engines/glk/frotz
parentb2b78f48f0ef5de7253df428cd53115e4a88a84d (diff)
downloadscummvm-rg350-a53e00597bdab2ffc1496f672010d9f51e69b991.tar.gz
scummvm-rg350-a53e00597bdab2ffc1496f672010d9f51e69b991.tar.bz2
scummvm-rg350-a53e00597bdab2ffc1496f672010d9f51e69b991.zip
GLK: Show unknown variant dialog for unknown detection entries
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r--engines/glk/frotz/detection.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp
index 0c8a92b9ab..4502fc66af 100644
--- a/engines/glk/frotz/detection.cpp
+++ b/engines/glk/frotz/detection.cpp
@@ -120,22 +120,15 @@ bool FrotzMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
if (filename.hasSuffixIgnoreCase(".dat") || filename.hasSuffixIgnoreCase(".zip") || emptyBlorb)
continue;
- if (gDebugLevel > 0) {
- // Print an entry suitable for putting into the detection_tables.h, using the
- // name of the parent folder the game is in as the presumed game Id
- Common::String folderName = file->getParent().getName();
- if (folderName.hasSuffix("\\"))
- folderName.deleteLastChar();
- Common::String fname = filename;
- const char *dot = strchr(fname.c_str(), '.');
- if (dot)
- fname = Common::String(fname.c_str(), dot);
-
- debug("ENTRY0(\"%s\", %s, \"%s\", %u),",
- fname.c_str(), strlen(serial) ? serial : "nullptr", md5.c_str(), (uint)filesize);
- }
const PlainGameDescriptor &desc = ZCODE_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 {
GameDescriptor gameDesc = findGame(p->_gameId);
gd = DetectedGame(p->_gameId, gameDesc._description, p->_language, Common::kPlatformUnknown, p->_extra);