diff options
author | Max Horn | 2007-02-13 14:55:11 +0000 |
---|---|---|
committer | Max Horn | 2007-02-13 14:55:11 +0000 |
commit | 4968e912ce005f582a34cd0fba7395ebdfc7dc40 (patch) | |
tree | e1d2b83152b98238b69989cba3006439c122decb /engines | |
parent | 08079c9dec6f59b1e8d100d90ef83581a38aecbe (diff) | |
download | scummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.tar.gz scummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.tar.bz2 scummvm-rg350-4968e912ce005f582a34cd0fba7395ebdfc7dc40.zip |
AdvancedDetector changes:
* Renamed genGameList to gameIDList to make it match the corresponding
plugin API function name
* removed the detectFunc param from detectGameForEngineCreation,
as it *always* pointed to a straight wrapper around AdvancedDetector::detectAllGames
* as a consequence, removed the various GAME_detectGames functions from the
engines, and removed the detectFunc param from ADVANCED_DETECTOR_DEFINE_PLUGIN
svn-id: r25547
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/detection.cpp | 7 | ||||
-rw-r--r-- | engines/agos/game.cpp | 6 | ||||
-rw-r--r-- | engines/cine/detection.cpp | 8 | ||||
-rw-r--r-- | engines/gob/detection.cpp | 7 | ||||
-rw-r--r-- | engines/parallaction/detection.cpp | 8 | ||||
-rw-r--r-- | engines/saga/game.cpp | 7 | ||||
-rw-r--r-- | engines/touche/plugin.cpp | 10 |
7 files changed, 7 insertions, 46 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index fa5f9d3ba3..15a283db50 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -52,7 +52,6 @@ uint16 AgiEngine::getVersion() const { return _gameDescription->version; } -static GameList GAME_detectGames(const FSList &fslist); } static const PlainGameDescriptor agiGames[] = { @@ -1743,7 +1742,7 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, Agi::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(AGI, Agi::AgiEngine, detectionParams); REGISTER_PLUGIN(AGI, "AGI v2 + v3 Engine", "Sierra AGI Engine (C) Sierra On-Line Software"); @@ -1758,9 +1757,5 @@ bool AgiEngine::initGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Agi diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp index 071aae9fd3..6df5a1a7a5 100644 --- a/engines/agos/game.cpp +++ b/engines/agos/game.cpp @@ -39,7 +39,6 @@ struct AGOSGameDescription { uint32 features; }; -static GameList GAME_detectGames(const FSList &fslist); } /** @@ -101,7 +100,7 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, AGOS::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(AGOS, AGOS::AGOSEngine, detectionParams); REGISTER_PLUGIN(AGOS, "AGOS", "AGOS (C) Adventure Soft"); @@ -116,9 +115,6 @@ bool AGOSEngine::initGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} int AGOSEngine::getGameId() const { return _gameDescription->gameId; diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 519d410f36..ad5f917e91 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -43,8 +43,6 @@ uint32 CineEngine::getFeatures() const { return _gameDescription->features; } Common::Language CineEngine::getLanguage() const { return _gameDescription->desc.language; } Common::Platform CineEngine::getPlatform() const { return _gameDescription->desc.platform; } - -static GameList GAME_detectGames(const FSList &fslist); } static const PlainGameDescriptor cineGames[] = { @@ -486,7 +484,7 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, Cine::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(CINE, Cine::CineEngine, detectionParams); REGISTER_PLUGIN(CINE, "Cinematique evo 1 engine", "Future Wars & Operation Stealth (C) Delphine Software"); @@ -501,8 +499,4 @@ bool CineEngine::initGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Cine diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index 317edea8f2..464fbea909 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -37,7 +37,6 @@ struct GOBGameDescription { const char *startTotBase; }; -static GameList GAME_detectGames(const FSList &fslist); } using namespace Common; @@ -918,7 +917,7 @@ static const ADParams detectionParams = { kADFlagAugmentPreferredTarget | kADFlagFilebasedFallback }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Gob::GobEngine, Gob::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(GOB, Gob::GobEngine, detectionParams); REGISTER_PLUGIN(GOB, "Gob Engine", "Goblins Games (C) Coktel Vision"); @@ -949,8 +948,4 @@ bool GobEngine::detectGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Parallaction diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp index a1850d04e8..23db8c0597 100644 --- a/engines/parallaction/detection.cpp +++ b/engines/parallaction/detection.cpp @@ -41,8 +41,6 @@ int Parallaction::getGameType() const { return _gameDescription->gameType; } uint32 Parallaction::getFeatures() const { return _gameDescription->features; } Common::Language Parallaction::getLanguage() const { return _gameDescription->desc.language; } Common::Platform Parallaction::getPlatform() const { return _gameDescription->desc.platform; } - -static GameList GAME_detectGames(const FSList &fslist); } static const PlainGameDescriptor parallactionGames[] = { @@ -100,7 +98,7 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, Parallaction::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(PARALLACTION, Parallaction::Parallaction, detectionParams); REGISTER_PLUGIN(PARALLACTION, "Parallaction engine", "Nippon Safes Inc. (C) Dynabyte"); @@ -114,8 +112,4 @@ bool Parallaction::detectGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Parallaction diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp index aaec2dad2f..ca3e4ddfca 100644 --- a/engines/saga/game.cpp +++ b/engines/saga/game.cpp @@ -79,7 +79,6 @@ int SagaEngine::getPatchesCount() const { return _gameDescription->patchesCount; const GamePatchDescription *SagaEngine::getPatchDescriptions() const { return _gameDescription->patchDescriptions; } const Common::ADGameFileDescription *SagaEngine::getFilesDescriptions() const { return _gameDescription->desc.filesDescriptions; } -static GameList GAME_detectGames(const FSList &fslist); } static const PlainGameDescriptor sagaGames[] = { @@ -120,7 +119,7 @@ static const Common::ADParams detectionParams = { Common::kADFlagAugmentPreferredTarget }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, Saga::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(SAGA, Saga::SagaEngine, detectionParams); REGISTER_PLUGIN(SAGA, "SAGA Engine", "Inherit the Earth (C) Wyrmkeep Entertainment"); @@ -140,8 +139,4 @@ bool SagaEngine::initGame() { return _resource->createContexts(); } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Saga diff --git a/engines/touche/plugin.cpp b/engines/touche/plugin.cpp index 19cdc6803b..3749a73027 100644 --- a/engines/touche/plugin.cpp +++ b/engines/touche/plugin.cpp @@ -28,10 +28,6 @@ #include "touche/touche.h" -namespace Touche { -static GameList GAME_detectGames(const FSList &fslist); -} - static const PlainGameDescriptor toucheGames[] = { {"touche", "Touche: The Adventures of the Fifth Musketeer"}, @@ -116,7 +112,7 @@ static const Common::ADParams detectionParams = { 0 }; -ADVANCED_DETECTOR_DEFINE_PLUGIN(TOUCHE, Touche::ToucheEngine, Touche::GAME_detectGames, detectionParams); +ADVANCED_DETECTOR_DEFINE_PLUGIN(TOUCHE, Touche::ToucheEngine, detectionParams); REGISTER_PLUGIN(TOUCHE, "Touche Engine", "Touche: The Adventures of the 5th Musketeer (C) Clipper Software"); @@ -131,8 +127,4 @@ bool ToucheEngine::detectGame() { return true; } -GameList GAME_detectGames(const FSList &fslist) { - return Common::AdvancedDetector::detectAllGames(fslist, detectionParams); -} - } // End of namespace Touche |