GM/GS/MT-32 Init Patch
|Reported by:||SF/tbcarey||Owned by:||fingolfin|
Patch to the earlier quicky patch. It should fix the
1) Prevent FMTowns games from initializing as MT32 or
GM or GS, which in turn prevents a crash caused by GS
init calling midi->getPercussionChannel(), which YM2162
driver seems to be unable to handle (at least in this
2) Prevents null midi games from doing the same, when
they shouldn't anyway.
3) Prevents MT-32 emulation (Munt) from doing GS init,
which can mess up some of its percussion settings, etc.
The first two problems are caused because any non-Adlib
sound driver that uses the imuse parser (as opposed to
pc speaker, pcjr which don't) will return true for
_midi_native. This shouldn't be the case, but it
appears that _midi_native is only set up to be opposed
to _adlib_native, so when if clauses are used to
determine if an mt-32/gm specific portion of the code
should run, YM2162 and NULL drivers still do so. This
should prevent that, although the label '_midi_native'
is still somewhat misleading.
Ticket imported from: #1186858. Ticket imported from: patches/528.