Permalink
Browse files

STARTREK: Add detection for the ST25 Mac demo

  • Loading branch information...
Drenn1 authored and sev- committed May 5, 2018
1 parent e07fe3f commit b1878174ec65475046392e6be775cfe7fc302240
Showing with 23 additions and 3 deletions.
  1. +15 −0 engines/startrek/detection.cpp
  2. +8 −3 engines/startrek/startrek.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,
},

{
{
@@ -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");

0 comments on commit b187817

Please sign in to comment.