aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-25 14:19:02 +0000
committerFilippos Karapetis2010-11-25 14:19:02 +0000
commit394daa57044dc83e971041bcd62fbd12ee6b3174 (patch)
tree2a9b3f14b3f5e82650c2945bbb01b2314b0aa43d
parent29395974ca14cec08d08a13e79e5c4bfee0d7657 (diff)
downloadscummvm-rg350-394daa57044dc83e971041bcd62fbd12ee6b3174.tar.gz
scummvm-rg350-394daa57044dc83e971041bcd62fbd12ee6b3174.tar.bz2
scummvm-rg350-394daa57044dc83e971041bcd62fbd12ee6b3174.zip
SCI: Added engine method isCD()
svn-id: r54475
-rw-r--r--engines/sci/sci.cpp4
-rw-r--r--engines/sci/sci.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 940c473947..08256a86ca 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -739,6 +739,10 @@ bool SciEngine::isDemo() const {
return _gameDescription->flags & ADGF_DEMO;
}
+bool SciEngine::isCD() const {
+ return _gameDescription->flags & ADGF_CD;
+}
+
bool SciEngine::hasMacIconBar() const {
return _resMan->isSci11Mac() && getSciVersion() == SCI_VERSION_1_1 && getGameId() != GID_HOYLE4;
}
diff --git a/engines/sci/sci.h b/engines/sci/sci.h
index dea8cb23c2..716419d103 100644
--- a/engines/sci/sci.h
+++ b/engines/sci/sci.h
@@ -231,6 +231,7 @@ public:
Common::Language getLanguage() const;
Common::Platform getPlatform() const;
bool isDemo() const;
+ bool isCD() const;
bool hasMacIconBar() const;
inline ResourceManager *getResMan() const { return _resMan; }