diff options
author | Nipun Garg | 2019-06-19 03:36:46 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:49 +0200 |
commit | 159e50c82f94868978950d40e1bf98e22241dca2 (patch) | |
tree | fd30502d94cef7d3d8c34f5f78f67d594cec1e1e /engines | |
parent | f5a695191bed56c013228b670996b5ec70efb602 (diff) | |
download | scummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.tar.gz scummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.tar.bz2 scummvm-rg350-159e50c82f94868978950d40e1bf98e22241dca2.zip |
HDB: Add isDemo()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/detection.cpp | 7 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 1 |
2 files changed, 8 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[] = { diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 09c9d6f11d..8f81865290 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -92,6 +92,7 @@ public: const char *getGameFile() const; uint32 getGameFlags() const; Common::Platform getPlatform() const; + int isDemo() const; /* Game System Pointers |