From 6db0289f3032a3df3200210a4a2a173fd9805858 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 9 Mar 2006 14:33:07 +0000 Subject: Moved SAGA plugin interface code from saga.cpp to game.cpp svn-id: r21181 --- engines/saga/saga.cpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'engines/saga/saga.cpp') diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index b81c151456..208893b20e 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -24,8 +24,6 @@ #include "common/stdafx.h" #include "base/gameDetector.h" -#include "base/plugins.h" -#include "backends/fs/fs.h" #include "common/file.h" #include "common/config-manager.h" @@ -56,44 +54,6 @@ #include "saga/objectmap.h" #include "saga/resnames.h" -static const PlainGameDescriptor saga_games[] = { - {"ite", "Inherit the Earth: Quest for the Orb"}, - {"ihnm", "I Have No Mouth and I Must Scream"}, - {0, 0} -}; - -GameList Engine_SAGA_gameIDList() { - GameList games; - const PlainGameDescriptor *g = saga_games; - - while (g->gameid) { - games.push_back(*g); - g++; - } - - return games; -} - -GameDescriptor Engine_SAGA_findGameID(const char *gameid) { - const PlainGameDescriptor *g = saga_games; - while (g->gameid) { - if (0 == scumm_stricmp(gameid, g->gameid)) - break; - g++; - } - return *g; -} - -DetectedGameList Engine_SAGA_detectGames(const FSList &fslist) { - return Saga::GAME_ProbeGame(fslist); -} - -Engine *Engine_SAGA_create(GameDetector *detector, OSystem *syst) { - return new Saga::SagaEngine(detector, syst); -} - -REGISTER_PLUGIN(SAGA, "SAGA Engine") - namespace Saga { #define MAX_TIME_DELTA 100 -- cgit v1.2.3