diff options
author | Paul Gilbert | 2019-07-06 10:25:28 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-06 15:27:10 -0700 |
commit | 5dda48c1c785b8a477785ee6040db82b904858bb (patch) | |
tree | 258a1650bfa5f51402530ddca822e03f1b984ff7 /engines/glk/frotz/detection.cpp | |
parent | 0502ac4bb1b41b17664adf46a2c3600553023c84 (diff) | |
download | scummvm-rg350-5dda48c1c785b8a477785ee6040db82b904858bb.tar.gz scummvm-rg350-5dda48c1c785b8a477785ee6040db82b904858bb.tar.bz2 scummvm-rg350-5dda48c1c785b8a477785ee6040db82b904858bb.zip |
GLK: Change other sub-engines to use GlkDetectedGame
Diffstat (limited to 'engines/glk/frotz/detection.cpp')
-rw-r--r-- | engines/glk/frotz/detection.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp index 4502fc66af..d4ffee33a3 100644 --- a/engines/glk/frotz/detection.cpp +++ b/engines/glk/frotz/detection.cpp @@ -114,29 +114,21 @@ bool FrotzMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g (filesize != p->_filesize && isBlorb))) ++p; - DetectedGame gd; if (!p->_gameId) { // Generic .dat/.zip files don't get reported as matches unless they have a known md5 if (filename.hasSuffixIgnoreCase(".dat") || filename.hasSuffixIgnoreCase(".zip") || emptyBlorb) continue; 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; - + gameList.push_back(GlkDetectedGame(desc.gameId, desc.description, filename, md5, filesize)); } else { GameDescriptor gameDesc = findGame(p->_gameId); - gd = DetectedGame(p->_gameId, gameDesc._description, p->_language, Common::kPlatformUnknown, p->_extra); + DetectedGame gd = DetectedGame(p->_gameId, gameDesc._description, p->_language, Common::kPlatformUnknown, p->_extra); gd.setGUIOptions(p->_guiOptions); - } - gd.addExtraEntry("filename", filename); - gameList.push_back(gd); + gd.addExtraEntry("filename", filename); + gameList.push_back(gd); + } } return !gameList.empty(); |