diff options
author | Eugene Sandulenko | 2016-10-09 08:44:22 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:00 +0100 |
commit | 9e7129f41709f21500c20a44005c293b934d99cd (patch) | |
tree | 043212cc606481ac49aded2a7732bcabc824cf0d | |
parent | 85bc7f820f23f3610bd33175a07bfaecb00ae90f (diff) | |
download | scummvm-rg350-9e7129f41709f21500c20a44005c293b934d99cd.tar.gz scummvm-rg350-9e7129f41709f21500c20a44005c293b934d99cd.tar.bz2 scummvm-rg350-9e7129f41709f21500c20a44005c293b934d99cd.zip |
CRYO: Added isDemo()
-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; } } |