aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-06-16 16:44:33 +0000
committerMax Horn2007-06-16 16:44:33 +0000
commitc7c2cb498ccff9f67cd88f356d0050ce58af59d6 (patch)
treee2201eafa272cc617428ec3d62c9e56d8797bfa0
parentd9abc85fbd772a7874d9ad6e91159e2f4dea4365 (diff)
downloadscummvm-rg350-c7c2cb498ccff9f67cd88f356d0050ce58af59d6.tar.gz
scummvm-rg350-c7c2cb498ccff9f67cd88f356d0050ce58af59d6.tar.bz2
scummvm-rg350-c7c2cb498ccff9f67cd88f356d0050ce58af59d6.zip
Simplified LURE detection code a little bit
svn-id: r27466
-rw-r--r--engines/lure/detection.cpp18
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) {