[Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.60,2.61

Jamieson Christian jamieson630 at users.sourceforge.net
Sat May 31 18:14:01 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv9457/scummvm/scumm

Modified Files:
	imuse.cpp 
Log Message:
Teaking the MT-32 welcome message.

Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse.cpp,v
retrieving revision 2.60
retrieving revision 2.61
diff -u -d -r2.60 -r2.61
--- imuse.cpp	1 Jun 2003 00:42:01 -0000	2.60
+++ imuse.cpp	1 Jun 2003 01:13:00 -0000	2.61
@@ -1119,9 +1119,14 @@
 
 	// Display a welcome message on MT-32 displays.
 	byte welcome[] = {
-		0x41, 0x00, 0x16, 0x11, 0x20, 0x00, 0x00, 0x00, 0x00, 0x14,
-		' ','W','e','l','c','o','m','e',' ','t','o',' ','S','c','u','m','m','V','M',' '
+		0x41, 0x10, 0x16, 0x12, 0x20, 0x00, 0x00,
+		' ','W','e','l','c','o','m','e',' ','t','o',' ','S','c','u','m','m','V','M',' ',
+		0
 	};
+	byte checksum = 0;
+	for (int i = 4; i < ARRAYSIZE(welcome) - 1; ++i)
+		checksum -= welcome[i];
+	welcome[ARRAYSIZE(welcome)-1] = checksum & 0x7F;
 	midi->sysEx (welcome, ARRAYSIZE(welcome));
 
 	// Connect to the driver's timer





More information about the Scummvm-git-logs mailing list