diff options
author | Travis Howell | 2006-10-16 04:51:33 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-16 04:51:33 +0000 |
commit | 6388455615f313190bdcc2d5e93fd7fc74786775 (patch) | |
tree | 411fe88f6052a0759934d52c5a8b64958916695e | |
parent | 087331e102e44650903660446d3f3490a692777b (diff) | |
download | scummvm-rg350-6388455615f313190bdcc2d5e93fd7fc74786775.tar.gz scummvm-rg350-6388455615f313190bdcc2d5e93fd7fc74786775.tar.bz2 scummvm-rg350-6388455615f313190bdcc2d5e93fd7fc74786775.zip |
Disable mouse cursor in Amiga demo of Elvira 1
svn-id: r24346
-rw-r--r-- | engines/agos/agos.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index e2b3b6e748..3b6682f781 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -2312,6 +2312,11 @@ int AGOSEngine::go() { vc34_setMouseOff(); + if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) { + _initMouse = 1; + loadMusic(0); + } + if ((getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformMacintosh) && getGameType() == GType_FF) { _moviePlay->load((const char *)"epic.dxa"); @@ -2350,14 +2355,21 @@ void AGOSEngine::shutdown() { void AGOSEngine::loadMusic(uint music) { char buf[4]; - if (getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformAtariST) { + if (getPlatform() == Common::kPlatformAtariST) { + // TODO: Add support for music format used by Elvira 2 + } else if (getPlatform() == Common::kPlatformAmiga) { + // TODO: Add Protracker mod support for Amiga versions + char filename[15]; + + if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) + sprintf(filename, "elvira2"); + else + sprintf(filename, "%dtune", music); + if (getFeatures() & GF_CRUNCHED) { - // TODO Add support for decruncher - debug(5,"loadMusic - Decrunch %dtune attempt", music); + debug(5,"loadMusic - Decrunch %s attempt", filename); } - // TODO Add Protracker support for simon1amiga/cd32 - debug(5,"playMusic - Load %dtune attempt", music); - return; + debug(5,"playMusic - Play %s attempt", filename); } else if (getGameType() == GType_SIMON2) { midi.stop(); _gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music - 1], SEEK_SET); |