Simplified LURE detection code a little bit
svn-id: r27466
This commit is contained in:
parent
d9abc85fbd
commit
c7c2cb498c
1 changed files with 3 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue