diff options
Diffstat (limited to 'engines/glk/agt/detection.cpp')
-rw-r--r-- | engines/glk/agt/detection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/glk/agt/detection.cpp b/engines/glk/agt/detection.cpp index ec093b798b..f1913c9f81 100644 --- a/engines/glk/agt/detection.cpp +++ b/engines/glk/agt/detection.cpp @@ -45,8 +45,6 @@ GameDescriptor AGTMetaEngine::findGame(const char *gameId) { } bool AGTMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) { - const char *const EXTENSIONS[] = { ".saga", ".dat", nullptr }; - // Loop through the files of the folder for (Common::FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { // Check for a recognised filename @@ -54,7 +52,7 @@ bool AGTMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gam continue; Common::String filename = file->getName(); - if (!filename.hasSuffixIgnoreCase(".d$$")) + if (!filename.hasSuffixIgnoreCase(".d$$") && !filename.hasSuffixIgnoreCase(".agx")) continue; Common::File gameFile; @@ -74,7 +72,9 @@ bool AGTMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gam } else { // Found a match PlainGameDescriptor gameDesc = findGame(p->_gameId); - gameList.push_back(GlkDetectedGame(p->_gameId, gameDesc.description, filename)); + DetectedGame gd("glk", p->_gameId, gameDesc.description, p->_language, Common::kPlatformUnknown, p->_extra); + gd.addExtraEntry("filename", filename); + gameList.push_back(gd); } } |