aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/scott
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-10 12:21:23 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitc589b807e2b4ae67928cfadb0a5b2e18cef38ff3 (patch)
tree058876d2136ccecd3af6dc4268c479d3fbe8d0b2 /engines/gargoyle/scott
parent43cee5fb0f4fee9669098c21777ac9b41865bee1 (diff)
downloadscummvm-rg350-c589b807e2b4ae67928cfadb0a5b2e18cef38ff3.tar.gz
scummvm-rg350-c589b807e2b4ae67928cfadb0a5b2e18cef38ff3.tar.bz2
scummvm-rg350-c589b807e2b4ae67928cfadb0a5b2e18cef38ff3.zip
GLK: FROTZ: Skeleton sub-engine for Frotz interpreter
Diffstat (limited to 'engines/gargoyle/scott')
-rw-r--r--engines/gargoyle/scott/detection.cpp4
-rw-r--r--engines/gargoyle/scott/detection.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/gargoyle/scott/detection.cpp b/engines/gargoyle/scott/detection.cpp
index 04d4f83bea..1b8041a52f 100644
--- a/engines/gargoyle/scott/detection.cpp
+++ b/engines/gargoyle/scott/detection.cpp
@@ -53,7 +53,7 @@ const ScottGame SCOTT_GAMES[] = {
{ nullptr, nullptr, 0, nullptr }
};
-void ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) {
+bool ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) {
Common::File gameFile;
Common::String md5;
@@ -81,6 +81,8 @@ void ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
gameFile.close();
}
}
+
+ return !gameList.empty();
}
} // End of namespace Scott
diff --git a/engines/gargoyle/scott/detection.h b/engines/gargoyle/scott/detection.h
index e2aa93ed1b..01e1ffe64d 100644
--- a/engines/gargoyle/scott/detection.h
+++ b/engines/gargoyle/scott/detection.h
@@ -32,9 +32,9 @@ namespace Scott {
class ScottMetaEngine {
public:
/**
- * Detect Scott Adams games
+ * Detect supported games
*/
- static void detectGames(const Common::FSList &fslist, DetectedGames &gameList);
+ static bool detectGames(const Common::FSList &fslist, DetectedGames &gameList);
};
} // End of namespace Scott