diff options
| author | Paul Gilbert | 2019-06-23 12:42:00 -0700 |
|---|---|---|
| committer | Paul Gilbert | 2019-06-23 14:41:49 -0700 |
| commit | a53e00597bdab2ffc1496f672010d9f51e69b991 (patch) | |
| tree | c21f808e587134cb4658c61f344332216343ae16 /engines/glk/tads | |
| parent | b2b78f48f0ef5de7253df428cd53115e4a88a84d (diff) | |
| download | scummvm-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/tads')
| -rw-r--r-- | engines/glk/tads/detection.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/engines/glk/tads/detection.cpp b/engines/glk/tads/detection.cpp index 51a29d1074..8ea996b7bc 100644 --- a/engines/glk/tads/detection.cpp +++ b/engines/glk/tads/detection.cpp @@ -106,17 +106,15 @@ bool TADSMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &ga DetectedGame gd; if (!p->_gameId) { - if (gDebugLevel > 0) { - // Print an entry suitable for putting into the detection_tables.h - Common::String fname = filename; - const char *dot = strchr(fname.c_str(), '.'); - if (dot) - fname = Common::String(fname.c_str(), dot); - - debug("TADS%d ENTRY0(\"%s\", \"%s\", %u),", tadsVersion, fname.c_str(), md5.c_str(), (uint)filesize); - } const GameDescriptor &desc = tadsVersion == 2 ? TADS2_GAME_LIST[0] : TADS3_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); |
