diff options
-rw-r--r-- | engines/lure/detection.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/engines/lure/detection.cpp b/engines/lure/detection.cpp index 06c769323c..b4a69bfd43 100644 --- a/engines/lure/detection.cpp +++ b/engines/lure/detection.cpp @@ -27,6 +27,7 @@ #include "base/plugins.h" +#include "common/advancedDetector.h" #include "common/endian.h" #include "common/file.h" #include "common/fs.h" @@ -77,24 +78,11 @@ static const PlainGameDescriptor lure_list[] = { using namespace Lure; GameList Engine_LURE_gameIDList() { - GameList games; - const PlainGameDescriptor *g = lure_list; - - while (g->gameid) { - games.push_back(*g); - g++; - } - return games; + return GameList(lure_list); } GameDescriptor Engine_LURE_findGameID(const char *gameid) { - const PlainGameDescriptor *g = lure_list; - while (g->gameid) { - if (0 == scumm_stricmp(gameid, g->gameid)) - break; - g++; - } - return GameDescriptor(g->gameid, g->description); + return Common::AdvancedDetector::findGameID(gameid, lure_list); } GameList Engine_LURE_detectGames(const FSList &fslist) { |