diff options
-rw-r--r-- | engines/glk/frotz/detection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp index 895dd4e1ab..c869c920a8 100644 --- a/engines/glk/frotz/detection.cpp +++ b/engines/glk/frotz/detection.cpp @@ -46,7 +46,7 @@ PlainGameDescriptor FrotzMetaEngine::findGame(const char *gameId) { } bool FrotzMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) { - const char *const EXTENSIONS[10] = { ".dat", ".z1", ".z2", ".z3", ".z4", ".z5", ".z6", ".z7", ".z8", ".zblorb" }; + const char *const EXTENSIONS[11] = { ".z1", ".z2", ".z3", ".z4", ".z5", ".z6", ".z7", ".z8", ".zblorb", ".dat", ".zip" }; // Loop through the files of the folder for (Common::FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { @@ -55,7 +55,7 @@ bool FrotzMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g continue; Common::String filename = file->getName(); bool hasExt = false; - for (int idx = 0; idx < 10 && !hasExt; ++idx) + for (int idx = 0; idx < 11 && !hasExt; ++idx) hasExt = filename.hasSuffixIgnoreCase(EXTENSIONS[idx]); if (!hasExt) continue; @@ -83,8 +83,8 @@ bool FrotzMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g DetectedGame gd; if (!p->_gameId) { - // Generic .dat files don't get reported as matches unless they have a known md5 - if (filename.hasSuffixIgnoreCase(".dat")) + // Generic .dat/.zip files don't get reported as matches unless they have a known md5 + if (filename.hasSuffixIgnoreCase(".dat") || filename.hasSuffixIgnoreCase(".zip")) continue; if (gDebugLevel > 0) { |