diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch | |
Diffstat (limited to 'vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch')
| -rw-r--r-- | vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch b/vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch new file mode 100644 index 0000000..e10809b --- /dev/null +++ b/vcpkg/ports/libopnmidi/fix-build-without-sequencer.patch @@ -0,0 +1,49 @@ +diff --git a/src/opnmidi.cpp b/src/opnmidi.cpp +index c70197f..98226dc 100644 +--- a/src/opnmidi.cpp ++++ b/src/opnmidi.cpp +@@ -433,7 +433,7 @@ OPNMIDI_EXPORT void opn2_setLoopCount(OPN2_MIDIPlayer *device, int loopCount) + + OPNMIDI_EXPORT void opn2_setLoopHooksOnly(OPN2_MIDIPlayer *device, int loopHooksOnly) + { +-#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER ++#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER + if(!device) + return; + MidiPlayer *play = GET_MIDI_PLAYER(device); +@@ -576,7 +576,7 @@ OPNMIDI_EXPORT int opn2_openData(OPN2_MIDIPlayer *device, const void *mem, unsig + + OPNMIDI_EXPORT void opn2_selectSongNum(struct OPN2_MIDIPlayer *device, int songNumber) + { +-#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER ++#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER + if(!device) + return; + +@@ -591,7 +591,7 @@ OPNMIDI_EXPORT void opn2_selectSongNum(struct OPN2_MIDIPlayer *device, int songN + + OPNMIDI_EXPORT int opn2_getSongsCount(struct OPN2_MIDIPlayer *device) + { +-#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER ++#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER + if(!device) + return 0; + +@@ -986,7 +986,7 @@ OPNMIDI_EXPORT void opn2_setLoopStartHook(struct OPN2_MIDIPlayer *device, OPN2_L + assert(play); + play->hooks.onLoopStart = loopStartHook; + play->hooks.onLoopStart_userData = userData; +-#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER ++#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER + play->m_sequencerInterface->onloopStart = loopStartHook; + play->m_sequencerInterface->onloopStart_userData = userData; + #endif +@@ -1001,7 +1001,7 @@ OPNMIDI_EXPORT void opn2_setLoopEndHook(struct OPN2_MIDIPlayer *device, OPN2_Loo + assert(play); + play->hooks.onLoopEnd = loopEndHook; + play->hooks.onLoopEnd_userData = userData; +-#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER ++#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER + play->m_sequencerInterface->onloopEnd = loopEndHook; + play->m_sequencerInterface->onloopEnd_userData = userData; + #endif |