aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 03:36:46 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commit159e50c82f94868978950d40e1bf98e22241dca2 (patch)
treefd30502d94cef7d3d8c34f5f78f67d594cec1e1e /engines/hdb/detection.cpp
parentf5a695191bed56c013228b670996b5ec70efb602 (diff)
downloadscummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.tar.gz
scummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.tar.bz2
scummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.zip
HDB: Add isDemo()
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 1d912cd726..f38d972ce7 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -38,6 +38,13 @@ uint32 HDBGame::getGameFlags() const {
return _gameDescription->flags;
}
+int HDBGame::isDemo() const {
+ if (getGameFlags() & ADGF_DEMO) {
+ return 1;
+ }
+ return 0;
+}
+
} // End of namespace HDB
static const PlainGameDescriptor hdbGames[] = {