aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/scott
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-31 19:47:14 -0800
committerPaul Gilbert2018-12-31 19:47:14 -0800
commit013f39cb5d7029e9569861034661770d1578847e (patch)
treea8796b50ce79001dc04dcc9db7e661f5d928fead /engines/glk/scott
parent84b6534c3fcf3315ed1c7fe3cabbdd167fc748a9 (diff)
downloadscummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.tar.gz
scummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.tar.bz2
scummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.zip
GLK: Standardizing on a common GameDescriptor class for detectors
Diffstat (limited to 'engines/glk/scott')
-rw-r--r--engines/glk/scott/detection.cpp4
-rw-r--r--engines/glk/scott/detection.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/glk/scott/detection.cpp b/engines/glk/scott/detection.cpp
index c41825140c..f1c4b9aa69 100644
--- a/engines/glk/scott/detection.cpp
+++ b/engines/glk/scott/detection.cpp
@@ -34,13 +34,13 @@ void ScottMetaEngine::getSupportedGames(PlainGameList &games) {
games.push_back(*pd);
}
-PlainGameDescriptor ScottMetaEngine::findGame(const char *gameId) {
+GameDescriptor ScottMetaEngine::findGame(const char *gameId) {
for (const PlainGameDescriptor *pd = SCOTT_GAME_LIST; pd->gameId; ++pd) {
if (!strcmp(gameId, pd->gameId))
return *pd;
}
- return PlainGameDescriptor();;
+ return GameDescriptor::empty();
}
bool ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) {
diff --git a/engines/glk/scott/detection.h b/engines/glk/scott/detection.h
index 709b7de1d9..b483e1a924 100644
--- a/engines/glk/scott/detection.h
+++ b/engines/glk/scott/detection.h
@@ -26,6 +26,7 @@
#include "common/fs.h"
#include "common/hash-str.h"
#include "engines/game.h"
+#include "glk/detection.h"
namespace Glk {
namespace Scott {
@@ -40,7 +41,7 @@ public:
/**
* Returns a game description for the given game Id, if it's supported
*/
- static PlainGameDescriptor findGame(const char *gameId);
+ static GameDescriptor findGame(const char *gameId);
/**
* Detect supported games