[Scummvm-cvs-logs] SF.net SVN: scummvm: [24769] scummvm/trunk/engines/cine/script.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Thu Nov 23 07:50:44 CET 2006


Revision: 24769
          http://svn.sourceforge.net/scummvm/?rev=24769&view=rev
Author:   sev
Date:     2006-11-22 22:50:44 -0800 (Wed, 22 Nov 2006)

Log Message:
-----------
Fix crashes on unimplemented music/sfx in Amiga/Atari versions.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/script.cpp

Modified: scummvm/trunk/engines/cine/script.cpp
===================================================================
--- scummvm/trunk/engines/cine/script.cpp	2006-11-23 06:49:23 UTC (rev 24768)
+++ scummvm/trunk/engines/cine/script.cpp	2006-11-23 06:50:44 UTC (rev 24769)
@@ -1691,7 +1691,8 @@
 
 	debugC(5, kCineDebugScript, "Line: %d: loadMusic(%s)", _currentLine, param);
 
-	if (g_cine->getPlatform() == Common::kPlatformAmiga) {
+	if (g_cine->getPlatform() == Common::kPlatformAmiga ||
+			g_cine->getPlatform() == Common::kPlatformAtariST) {
 		warning("STUB: o1_loadMusic");
 		return;
 	}
@@ -1748,6 +1749,12 @@
 	int16 volume = getNextWord();
 	uint16 flag = getNextWord();
 
+	if (g_cine->getPlatform() == Common::kPlatformAmiga ||
+			g_cine->getPlatform() == Common::kPlatformAtariST) {
+		warning("STUB: o1_playSample");
+		return;
+	}
+
 	if (volume > 63)
 		volume = 63;
 	if (volume < 0)


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