diff options
Diffstat (limited to 'engines/glk/scott')
-rw-r--r-- | engines/glk/scott/detection.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/engines/glk/scott/detection.cpp b/engines/glk/scott/detection.cpp index 03445ea090..f0a6e47174 100644 --- a/engines/glk/scott/detection.cpp +++ b/engines/glk/scott/detection.cpp @@ -77,28 +77,17 @@ bool ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g while (p->_md5 && p->_filesize != filesize && md5 != p->_md5) ++p; - DetectedGame gd; if (!p->_gameId) { if (!isBlorb && filename.hasSuffixIgnoreCase(".dat")) continue; const PlainGameDescriptor &desc = SCOTT_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; - + gameList.push_back(GlkDetectedGame(desc.gameId, desc.description, filename, md5, filesize)); } else { // Found a match PlainGameDescriptor gameDesc = findGame(p->_gameId); - DetectedGame gd(p->_gameId, gameDesc.description, Common::EN_ANY, Common::kPlatformUnknown); - gd.addExtraEntry("filename", file->getName()); + gameList.push_back(GlkDetectedGame(p->_gameId, gameDesc.description, filename)); } - - gameList.push_back(gd); } return !gameList.empty(); |