diff options
-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 |