From 9c8bd056d6d597a10f7f653b559dc34cd2bd2be9 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Thu, 15 Sep 2016 18:34:15 +0200 Subject: ENGINES: Stop using 'single id' --- engines/gob/detection/detection.cpp | 9 --------- engines/gob/detection/tables.h | 8 -------- 2 files changed, 17 deletions(-) (limited to 'engines/gob/detection') diff --git a/engines/gob/detection/detection.cpp b/engines/gob/detection/detection.cpp index 2a5196173c..c56ed45552 100644 --- a/engines/gob/detection/detection.cpp +++ b/engines/gob/detection/detection.cpp @@ -22,7 +22,6 @@ #include "base/plugins.h" #include "engines/advancedDetector.h" -#include "engines/obsolete.h" #include "gob/gob.h" #include "gob/dataio.h" @@ -33,8 +32,6 @@ class GobMetaEngine : public AdvancedMetaEngine { public: GobMetaEngine(); - PlainGameDescriptor findGame(const char *gameId) const override; - const char *getEngineId() const { return "gob"; } @@ -59,14 +56,9 @@ private: GobMetaEngine::GobMetaEngine() : AdvancedMetaEngine(Gob::gameDescriptions, sizeof(Gob::GOBGameDescription), gobGames) { - _singleId = "gob"; _guiOptions = GUIO1(GUIO_NOLAUNCHLOAD); } -PlainGameDescriptor GobMetaEngine::findGame(const char *gameId) const { - return Engines::findGameID(gameId, _gameIds, obsoleteGameIDsTable); -} - ADDetectedGame GobMetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { ADDetectedGame detectedGame = detectGameFilebased(allFiles, fslist, Gob::fileBased); if (!detectedGame.desc) { @@ -180,7 +172,6 @@ bool Gob::GobEngine::hasFeature(EngineFeature f) const { } Common::Error GobMetaEngine::createInstance(OSystem *syst, Engine **engine) const { - Engines::upgradeTargetIfNecessary(obsoleteGameIDsTable); return AdvancedMetaEngine::createInstance(syst, engine); } diff --git a/engines/gob/detection/tables.h b/engines/gob/detection/tables.h index 9b24203aa8..031ea627e0 100644 --- a/engines/gob/detection/tables.h +++ b/engines/gob/detection/tables.h @@ -41,7 +41,6 @@ using namespace Common; // Game IDs and proper names static const PlainGameDescriptor gobGames[] = { - {"gob", "Gob engine game"}, {"gob1", "Gobliiins"}, {"gob1cd", "Gobliiins CD"}, {"gob2", "Gobliins 2"}, @@ -81,13 +80,6 @@ static const PlainGameDescriptor gobGames[] = { {0, 0} }; -// Obsolete IDs we don't want anymore -static const Engines::ObsoleteGameID obsoleteGameIDsTable[] = { - {"gob1", "gob", kPlatformUnknown}, - {"gob2", "gob", kPlatformUnknown}, - {0, 0, kPlatformUnknown} -}; - namespace Gob { // Detection tables -- cgit v1.2.3