When I play a MIDI file containing an XG reset through either Yamaha X-YXG50 or S-YXG2006LE VSTi, the synthesizer is reset to something else, which I asume is either GM2 or GS since it can still use different drum kits. This becomes a problem especially with drum kits, if the MIDI file use something exclusive to XG, such as the bass drum on A1, which in GM and GS is a metronome. If I play a MIDI file without an XG reset, the synthesizer stays in XG mode as normal.
However, this behavior only happens when using the VSTi in Foobar2000 with foo_midi. If I play a MIDI file with an XG reset in a different MIDI program with the same VSTi, it resets to XG as it should.