From c7c2cb498ccff9f67cd88f356d0050ce58af59d6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 16 Jun 2007 16:44:33 +0000 Subject: Simplified LURE detection code a little bit svn-id: r27466 --- engines/lure/detection.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'engines/lure/detection.cpp') 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) { -- cgit v1.2.3