aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-05-06 13:09:52 +0200
committerBastien Bouclet2018-05-10 09:04:23 +0200
commit643c24db75797728087999abd8acf1ecc83757fa (patch)
tree7f35b6b3b637139aaa2a8bef8c1836583e2291a5 /engines/advancedDetector.cpp
parent8fb149e3c7603f023dfccf2b2056a9a2fda431c2 (diff)
downloadscummvm-rg350-643c24db75797728087999abd8acf1ecc83757fa.tar.gz
scummvm-rg350-643c24db75797728087999abd8acf1ecc83757fa.tar.bz2
scummvm-rg350-643c24db75797728087999abd8acf1ecc83757fa.zip
ENGINES: Change MetaEngine::listSupportedGames to return plain game descriptors
Diffstat (limited to 'engines/advancedDetector.cpp')
-rw-r--r--engines/advancedDetector.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 43c2082c7d..562ad5dfe2 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -583,14 +583,14 @@ ADDetectedGame AdvancedMetaEngine::detectGameFilebased(const FileMap &allFiles,
return result;
}
-GameList AdvancedMetaEngine::getSupportedGames() const {
+PlainGameList AdvancedMetaEngine::getSupportedGames() const {
if (_singleId != NULL) {
- GameList gl;
+ PlainGameList gl;
const PlainGameDescriptor *g = _gameIds;
while (g->gameId) {
if (0 == scumm_stricmp(_singleId, g->gameId)) {
- gl.push_back(GameDescriptor(g->gameId, g->description));
+ gl.push_back(*g);
return gl;
}
@@ -599,7 +599,7 @@ GameList AdvancedMetaEngine::getSupportedGames() const {
error("Engine %s doesn't have its singleid specified in ids list", _singleId);
}
- return GameList(_gameIds);
+ return PlainGameList(_gameIds);
}
PlainGameDescriptor AdvancedMetaEngine::findGame(const char *gameId) const {