aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-05-06 12:57:08 +0200
committerBastien Bouclet2018-05-10 09:04:23 +0200
commit8fb149e3c7603f023dfccf2b2056a9a2fda431c2 (patch)
treea758cefc70a784a65045d09d96f44ed1c16abbb8 /engines/advancedDetector.cpp
parentcf1ebf29516bd74927fd7b632b72fd8973f72e98 (diff)
downloadscummvm-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/advancedDetector.cpp')
-rw-r--r--engines/advancedDetector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 9c1a700423..43c2082c7d 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -602,14 +602,14 @@ GameList AdvancedMetaEngine::getSupportedGames() const {
return GameList(_gameIds);
}
-GameDescriptor AdvancedMetaEngine::findGame(const char *gameId) const {
+PlainGameDescriptor AdvancedMetaEngine::findGame(const char *gameId) const {
// First search the list of supported gameids for a match.
const PlainGameDescriptor *g = findPlainGameDescriptor(gameId, _gameIds);
if (g)
- return GameDescriptor(*g);
+ return *g;
// No match found
- return GameDescriptor();
+ return PlainGameDescriptor();
}
AdvancedMetaEngine::AdvancedMetaEngine(const void *descs, uint descItemSize, const PlainGameDescriptor *gameIds, const ADExtraGuiOptionsMap *extraGuiOptions)