aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Stewart2018-05-04 20:32:02 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commitb1878174ec65475046392e6be775cfe7fc302240 (patch)
tree4dd0d55deffbe69e0c7cc42abd9f4627c20ce4dd
parente07fe3f1a438b245b0a4dbf4506fe4c9d03d9258 (diff)
downloadscummvm-rg350-b1878174ec65475046392e6be775cfe7fc302240.tar.gz
scummvm-rg350-b1878174ec65475046392e6be775cfe7fc302240.tar.bz2
scummvm-rg350-b1878174ec65475046392e6be775cfe7fc302240.zip
STARTREK: Add detection for the ST25 Mac demo
-rwxr-xr-xengines/startrek/detection.cpp15
-rwxr-xr-xengines/startrek/startrek.cpp11
2 files changed, 23 insertions, 3 deletions
diff --git a/engines/startrek/detection.cpp b/engines/startrek/detection.cpp
index f0f2a353a6..d6e449e98b 100755
--- a/engines/startrek/detection.cpp
+++ b/engines/startrek/detection.cpp
@@ -163,6 +163,21 @@ static const StarTrekGameDescription gameDescriptions[] = {
GF_DEMO,
0,
},
+
+ {
+ {
+ "st25",
+ "Demo",
+ AD_ENTRY1("Star Trek Data", "88f88b81d389a3217fc7efd6ee631c42"),
+ Common::EN_ANY,
+ Common::kPlatformMacintosh,
+ ADGF_MACRESFORK | ADGF_DEMO,
+ GUIO0()
+ },
+ GType_ST25,
+ GF_DEMO,
+ 0,
+ },
{
{
diff --git a/engines/startrek/startrek.cpp b/engines/startrek/startrek.cpp
index 78b78aacac..303cd59cbc 100755
--- a/engines/startrek/startrek.cpp
+++ b/engines/startrek/startrek.cpp
@@ -88,9 +88,14 @@ Common::Error StarTrekEngine::run() {
#if 1
if (getGameType() == GType_ST25) {
if (getPlatform() == Common::kPlatformMacintosh) {
- playMovie("Voice Data/Additional Audio/Intro Movie");
- _gfx->setPalette("BRIDGES.PAL");
- _gfx->drawImage("BRIDGE0.BMP");
+ if (getFeatures() & GF_DEMO) {
+ _gfx->setPalette("BRIDGE.PAL");
+ _gfx->drawImage("BRIDGE.BMP");
+ } else {
+ playMovie("Voice Data/Additional Audio/Intro Movie");
+ _gfx->setPalette("BRIDGES.PAL");
+ _gfx->drawImage("BRIDGE0.BMP");
+ }
} else {
_gfx->setPalette("BRIDGE.PAL");
//_gfx->loadEGAData("BRIDGE.EGA");