aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamieson Christian2003-06-01 01:13:00 +0000
committerJamieson Christian2003-06-01 01:13:00 +0000
commit7a2a739ea33dc6092417bf52cfaf12934bb34334 (patch)
tree8a81922a413dd8a3dd4c4936e2b3cf4beed1a840
parente63dec5f56b716a84db3b817a4d18e84a2883468 (diff)
downloadscummvm-rg350-7a2a739ea33dc6092417bf52cfaf12934bb34334.tar.gz
scummvm-rg350-7a2a739ea33dc6092417bf52cfaf12934bb34334.tar.bz2
scummvm-rg350-7a2a739ea33dc6092417bf52cfaf12934bb34334.zip
Teaking the MT-32 welcome message.
svn-id: r8207
-rw-r--r--scumm/imuse.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp
index 2c3193a096..9befbfb88d 100644
--- a/scumm/imuse.cpp
+++ b/scumm/imuse.cpp
@@ -1119,9 +1119,14 @@ void IMuseInternal::initMidiDriver (MidiDriver *midi) {
// 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