diff options
author | David Corrales | 2007-06-23 18:51:33 +0000 |
---|---|---|
committer | David Corrales | 2007-06-23 18:51:33 +0000 |
commit | cacd7a28fd51d960947de88abbf30c487e66529d (patch) | |
tree | f3baa59853bfb307e452b86b9d93c4737b1fa6ab /engines/lure/detection.cpp | |
parent | 0ac96302fe9c04df79cb01a77d19535b45fe2db0 (diff) | |
parent | 90c2210dae8c91fa8babc6b05564e15c9d445d18 (diff) | |
download | scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.tar.gz scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.tar.bz2 scummvm-rg350-cacd7a28fd51d960947de88abbf30c487e66529d.zip |
Merged the FSNode branch with trunk r27031:27680
svn-id: r27681
Diffstat (limited to 'engines/lure/detection.cpp')
-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 4b2da03aa9..d072a009d5 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) { |