mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
Dummy handler for music commands 0xA and 0xB to keep Elvira1 from crashing. It
also seems to restore the missing first note of the intro music. svn-id: r24406
This commit is contained in:
parent
f95f5ed133
commit
86d3f30347
@ -45,7 +45,7 @@ protected:
|
||||
bool _no_delta;
|
||||
|
||||
protected:
|
||||
void parseNextEvent (EventInfo &info);
|
||||
void parseNextEvent(EventInfo &info);
|
||||
void resetTracking();
|
||||
uint32 readVLQ2(byte * &data);
|
||||
|
||||
@ -97,6 +97,15 @@ void MidiParser_S1D::parseNextEvent(EventInfo &info) {
|
||||
info.length = 0;
|
||||
break;
|
||||
|
||||
case 0xA:
|
||||
case 0xB:
|
||||
// I'm not sure what these are meant to do, or what the
|
||||
// parameter is. Elvira 1 needs them, though, and who am I to
|
||||
// argue with her?
|
||||
info.basic.param1 = *(_position._play_pos++);
|
||||
info.basic.param2 = 0;
|
||||
break;
|
||||
|
||||
case 0xC:
|
||||
info.basic.param1 = *(_position._play_pos++);
|
||||
info.basic.param2 = 0;
|
||||
@ -112,7 +121,7 @@ void MidiParser_S1D::parseNextEvent(EventInfo &info) {
|
||||
info.length = 0;
|
||||
break;
|
||||
}
|
||||
// OTherwise fall through to default.
|
||||
// Otherwise fall through to default.
|
||||
|
||||
default:
|
||||
debug(6, "MidiParser_S1D: Unexpected byte 0x%02X found", (int) info.command());
|
||||
|
Loading…
x
Reference in New Issue
Block a user