aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-03 18:08:45 +0530
committerEugene Sandulenko2019-09-03 17:16:42 +0200
commitfd666efd6ad39cc3c0fec61e14b096f74012b8e5 (patch)
treed416c93ceaeb89e9f291b98ae28750abcc3fc65b /engines/hdb/detection.cpp
parent708819839da585a251b0dcd70c3d4598ef24d61f (diff)
downloadscummvm-rg350-fd666efd6ad39cc3c0fec61e14b096f74012b8e5.tar.gz
scummvm-rg350-fd666efd6ad39cc3c0fec61e14b096f74012b8e5.tar.bz2
scummvm-rg350-fd666efd6ad39cc3c0fec61e14b096f74012b8e5.zip
HDB: Check if demo version is running
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index ca5acd657f..84d103d2d4 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -29,6 +29,20 @@
namespace HDB {
const char *HDBGame::getGameId() const { return _gameDescription->gameId; }
Common::Platform HDBGame::getPlatform() const { return _gameDescription->platform; }
+
+const char *HDBGame::getGameFile() const {
+ return _gameDescription->filesDescriptions[0].fileName;
+}
+
+void HDBGame::setGameFlags() {
+ _voiceless = false;
+ if (_gameDescription->flags & ADGF_DEMO) {
+ _isDemo = true;
+ return;
+ }
+ _isDemo = false;
+}
+
} // End of namespace HDB
static const PlainGameDescriptor hdbGames[] = {