diff options
author | Bastien Bouclet | 2018-05-06 12:57:08 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-05-10 09:04:23 +0200 |
commit | 8fb149e3c7603f023dfccf2b2056a9a2fda431c2 (patch) | |
tree | a758cefc70a784a65045d09d96f44ed1c16abbb8 /engines/sword1 | |
parent | cf1ebf29516bd74927fd7b632b72fd8973f72e98 (diff) | |
download | scummvm-rg350-8fb149e3c7603f023dfccf2b2056a9a2fda431c2.tar.gz scummvm-rg350-8fb149e3c7603f023dfccf2b2056a9a2fda431c2.tar.bz2 scummvm-rg350-8fb149e3c7603f023dfccf2b2056a9a2fda431c2.zip |
ENGINES: Change MetaEngine::findGame to return a plain game descriptor
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/detection.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp index 7fb86fec0b..62e8f1c905 100644 --- a/engines/sword1/detection.cpp +++ b/engines/sword1/detection.cpp @@ -88,7 +88,7 @@ public: virtual bool hasFeature(MetaEngineFeature f) const; virtual GameList getSupportedGames() const; - virtual GameDescriptor findGame(const char *gameid) const; + PlainGameDescriptor findGame(const char *gameId) const override; DetectedGames detectGames(const Common::FSList &fslist) const override; virtual SaveStateList listSaves(const char *target) const; virtual int getMaximumSaveSlot() const; @@ -127,20 +127,20 @@ GameList SwordMetaEngine::getSupportedGames() const { return games; } -GameDescriptor SwordMetaEngine::findGame(const char *gameid) const { - if (0 == scumm_stricmp(gameid, sword1FullSettings.gameId)) +PlainGameDescriptor SwordMetaEngine::findGame(const char *gameId) const { + if (0 == scumm_stricmp(gameId, sword1FullSettings.gameId)) return sword1FullSettings; - if (0 == scumm_stricmp(gameid, sword1DemoSettings.gameId)) + if (0 == scumm_stricmp(gameId, sword1DemoSettings.gameId)) return sword1DemoSettings; - if (0 == scumm_stricmp(gameid, sword1MacFullSettings.gameId)) + if (0 == scumm_stricmp(gameId, sword1MacFullSettings.gameId)) return sword1MacFullSettings; - if (0 == scumm_stricmp(gameid, sword1MacDemoSettings.gameId)) + if (0 == scumm_stricmp(gameId, sword1MacDemoSettings.gameId)) return sword1MacDemoSettings; - if (0 == scumm_stricmp(gameid, sword1PSXSettings.gameId)) + if (0 == scumm_stricmp(gameId, sword1PSXSettings.gameId)) return sword1PSXSettings; - if (0 == scumm_stricmp(gameid, sword1PSXDemoSettings.gameId)) + if (0 == scumm_stricmp(gameId, sword1PSXDemoSettings.gameId)) return sword1PSXDemoSettings; - return GameDescriptor(); + return PlainGameDescriptor(); } void Sword1CheckDirectory(const Common::FSList &fslist, bool *filesFound, bool recursion = false) { |