[Scummvm-cvs-logs] SF.net SVN: scummvm:[40784] scummvm/trunk/engines/kyra/sound_midi.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri May 22 16:09:51 CEST 2009


Revision: 40784
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40784&view=rev
Author:   lordhoto
Date:     2009-05-22 14:09:51 +0000 (Fri, 22 May 2009)

Log Message:
-----------
Add hack so LoL intro demo will init MT-32 properly.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound_midi.cpp

Modified: scummvm/trunk/engines/kyra/sound_midi.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_midi.cpp	2009-05-22 13:39:57 UTC (rev 40783)
+++ scummvm/trunk/engines/kyra/sound_midi.cpp	2009-05-22 14:09:51 UTC (rev 40784)
@@ -517,6 +517,10 @@
 				if (_vm->gameFlags().useAltShapeHeader) {
 					// Intro demo
 					pakFile = "INTROVOC.PAK";
+
+					// HACK: To prevent "Exc. Buffer overflow"
+					// we delay some time here.
+					_vm->_system->delayMillis(1000);
 				} else {
 					// Kyra2 SEQ player based demo
 					pakFile = "GENERAL.PAK";


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