aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/plugin.cpp')
-rw-r--r--engines/kyra/plugin.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/engines/kyra/plugin.cpp b/engines/kyra/plugin.cpp
index 658a1847a2..e63db7ee05 100644
--- a/engines/kyra/plugin.cpp
+++ b/engines/kyra/plugin.cpp
@@ -203,29 +203,9 @@ const PlainGameDescriptor gameList[] = {
} // End of anonymous namespace
-GameList Engine_KYRA_gameIDList() {
- GameList games;
- const PlainGameDescriptor *g = gameList;
+ADVANCED_DETECTOR_GAMEID_LIST(KYRA, gameList);
- while (g->gameid) {
- games.push_back(*g);
- g++;
- }
-
- return games;
-}
-
-GameDescriptor Engine_KYRA_findGameID(const char *gameid) {
- const PlainGameDescriptor *g = gameList;
-
- while (g->gameid) {
- if (0 == scumm_stricmp(gameid, g->gameid))
- break;
- g++;
- }
-
- return *g;
-}
+ADVANCED_DETECTOR_FIND_GAMEID(KYRA, gameList, NULL);
DetectedGameList Engine_KYRA_detectGames(const FSList &fslist) {
DetectedGameList detectedGames;