From fd666efd6ad39cc3c0fec61e14b096f74012b8e5 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Mon, 3 Jun 2019 18:08:45 +0530 Subject: HDB: Check if demo version is running --- engines/hdb/detection.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engines/hdb/detection.cpp') 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[] = { -- cgit v1.2.3