diff options
author | Nipun Garg | 2019-06-03 18:08:45 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:42 +0200 |
commit | fd666efd6ad39cc3c0fec61e14b096f74012b8e5 (patch) | |
tree | d416c93ceaeb89e9f291b98ae28750abcc3fc65b /engines/hdb/detection.cpp | |
parent | 708819839da585a251b0dcd70c3d4598ef24d61f (diff) | |
download | scummvm-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.cpp | 14 |
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[] = { |