diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/game.cpp | 14 | ||||
-rw-r--r-- | engines/game.h | 8 |
2 files changed, 8 insertions, 14 deletions
diff --git a/engines/game.cpp b/engines/game.cpp index b706e1d976..b90381d2d3 100644 --- a/engines/game.cpp +++ b/engines/game.cpp @@ -49,18 +49,10 @@ PlainGameDescriptor PlainGameDescriptor::of(const char *gameId, const char *desc return pgd; } -QualifiedGameDescriptor::QualifiedGameDescriptor() : - PlainGameDescriptor() { - engineId = nullptr; - gameId = nullptr; - description = nullptr; -} - QualifiedGameDescriptor::QualifiedGameDescriptor(const char *engine, const PlainGameDescriptor &pgd) : - PlainGameDescriptor() { - engineId = engine; - gameId = pgd.gameId; - description = pgd.description; + engineId(engine), + gameId(pgd.gameId), + description(pgd.description) { } DetectedGame::DetectedGame() : diff --git a/engines/game.h b/engines/game.h index e378976cb1..8316857e24 100644 --- a/engines/game.h +++ b/engines/game.h @@ -66,10 +66,12 @@ public: /** * The description of a game supported by an engine */ -struct QualifiedGameDescriptor : public PlainGameDescriptor { - const char *engineId; +struct QualifiedGameDescriptor { + Common::String engineId; + Common::String gameId; + Common::String description; - QualifiedGameDescriptor(); + QualifiedGameDescriptor() {} QualifiedGameDescriptor(const char *engine, const PlainGameDescriptor &pgd); }; |