mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00

XMIDI defines controllers which allow the MIDI data to send controller changes that build up SysEx messages. The last SysEx data byte is specified using the Final Data controller, which should append the final byte to the SysEx message and send it to the MIDI device. The old implementation did not append the last byte. Additionally, when increasing the memory address for the SysEx, it did not take into account that the MIDI bytes are 7 bit. This commit fixes these issues. This restores a missing data byte in a SySex in the MIDI initialization of The 7th Guest.