diff options
author | Paul Gilbert | 2018-12-14 19:30:43 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-14 19:30:43 -0800 |
commit | 6202b366065dc71eec988042428b44f0d05686e7 (patch) | |
tree | 63d117a2752abce2ab09087213054aa5f354229e /engines/glk/scott/detection.cpp | |
parent | bfae9bd21bf7f2edc3648ea53a24bf54c4274012 (diff) | |
download | scummvm-rg350-6202b366065dc71eec988042428b44f0d05686e7.tar.gz scummvm-rg350-6202b366065dc71eec988042428b44f0d05686e7.tar.bz2 scummvm-rg350-6202b366065dc71eec988042428b44f0d05686e7.zip |
GLK: SCOTT: Add support for Mysterious Adventures Blorb files
Diffstat (limited to 'engines/glk/scott/detection.cpp')
-rw-r--r-- | engines/glk/scott/detection.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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); |