diff options
-rw-r--r-- | engines/cryo/cryo.h | 1 | ||||
-rw-r--r-- | engines/cryo/detection.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/cryo/cryo.h b/engines/cryo/cryo.h index 433ffdd8c9..1f7817d627 100644 --- a/engines/cryo/cryo.h +++ b/engines/cryo/cryo.h @@ -59,6 +59,7 @@ public: const ADGameDescription *_gameDescription; const char *getGameId() const; Common::Platform getPlatform() const; + bool isDemo() const; // We need random numbers Common::RandomSource *_rnd; diff --git a/engines/cryo/detection.cpp b/engines/cryo/detection.cpp index a0514cb681..7afc81e76e 100644 --- a/engines/cryo/detection.cpp +++ b/engines/cryo/detection.cpp @@ -30,9 +30,9 @@ namespace Cryo { -const char *CryoEngine::getGameId() const { - return _gameDescription->gameId; -} +const char *CryoEngine::getGameId() const { return _gameDescription->gameId; } +bool CryoEngine::isDemo() const { return _gameDescription->flags & ADGF_DEMO; } +Common::Platform CryoEngine::getPlatform() const { return _gameDescription->platform; } } |