[Scummvm-cvs-logs] SF.net SVN: scummvm: [24346] scummvm/trunk/engines/agos/agos.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Mon Oct 16 06:51:38 CEST 2006
Revision: 24346
http://svn.sourceforge.net/scummvm/?rev=24346&view=rev
Author: kirben
Date: 2006-10-15 21:51:33 -0700 (Sun, 15 Oct 2006)
Log Message:
-----------
Disable mouse cursor in Amiga demo of Elvira 1
Modified Paths:
--------------
scummvm/trunk/engines/agos/agos.cpp
Modified: scummvm/trunk/engines/agos/agos.cpp
===================================================================
--- scummvm/trunk/engines/agos/agos.cpp 2006-10-16 04:40:50 UTC (rev 24345)
+++ scummvm/trunk/engines/agos/agos.cpp 2006-10-16 04:51:33 UTC (rev 24346)
@@ -2312,6 +2312,11 @@
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::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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list