From 5dda48c1c785b8a477785ee6040db82b904858bb Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 6 Jul 2019 10:25:28 -0700 Subject: GLK: Change other sub-engines to use GlkDetectedGame --- engines/glk/glulxe/detection.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'engines/glk/glulxe') diff --git a/engines/glk/glulxe/detection.cpp b/engines/glk/glulxe/detection.cpp index 5ee6285473..39233e4c6b 100644 --- a/engines/glk/glulxe/detection.cpp +++ b/engines/glk/glulxe/detection.cpp @@ -79,25 +79,13 @@ bool GlulxeMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames & while (p->_gameId && (md5 != p->_md5 || filesize != p->_filesize)) ++p; - DetectedGame gd; if (!p->_gameId) { const PlainGameDescriptor &desc = GLULXE_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 { PlainGameDescriptor gameDesc = findGame(p->_gameId); - gd = DetectedGame(p->_gameId, gameDesc.description, p->_language, Common::kPlatformUnknown, p->_extra); - gd.setGUIOptions(GUIO4(GUIO_NOSPEECH, GUIO_NOSFX, GUIO_NOMUSIC, GUIO_NOSUBTITLES)); + gameList.push_back(GlkDetectedGame(p->_gameId, gameDesc.description, filename)); } - - gd.addExtraEntry("filename", filename); - gameList.push_back(gd); } return !gameList.empty(); -- cgit v1.2.3