From 6202b366065dc71eec988042428b44f0d05686e7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 14 Dec 2018 19:30:43 -0800 Subject: GLK: SCOTT: Add support for Mysterious Adventures Blorb files --- engines/glk/scott/detection.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/glk/scott/detection.cpp') diff --git a/engines/glk/scott/detection.cpp b/engines/glk/scott/detection.cpp index 6c04a25646..45534d05cd 100644 --- a/engines/glk/scott/detection.cpp +++ b/engines/glk/scott/detection.cpp @@ -49,8 +49,9 @@ bool ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g // Loop through the files of the folder for (Common::FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { - if (file->isDirectory() || !(file->getName().hasSuffixIgnoreCase(".saga") - || file->getName().hasSuffixIgnoreCase(".dat"))) + Common::String name = file->getName(); + if (file->isDirectory() || !(name.hasSuffixIgnoreCase(".saga") + || name.hasSuffixIgnoreCase(".dat") || name.hasSuffixIgnoreCase(".blb"))) continue; if (gameFile.open(*file)) { @@ -60,7 +61,7 @@ bool ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g const ScottGame *p = SCOTT_GAMES; while (p->_md5 && p->_filesize != gameFile.size() && md5 != p->_md5) ++p; - +warning("{ \"%s\", \"%s\", %d }", md5.c_str(), file->getName().c_str(), gameFile.size()); if (p->_filesize) { // Found a match PlainGameDescriptor gameDesc = findGame(p->_gameId); -- cgit v1.2.3