diff options
author | Wohlstand <admin@wohlnet.ru> | 2025-03-27 02:01:33 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2025-03-27 02:01:33 +0300 |
commit | fda87042c28a70d7893da05219fdbe4fd9c1350d (patch) | |
tree | 7c2d10993d9892d89bb68797cb0cbf701d2a388e | |
parent | a89811374058283bea7096d66bd27bd2e1e30abd (diff) | |
download | libADLMIDI-fda87042c28a70d7893da05219fdbe4fd9c1350d.tar.gz libADLMIDI-fda87042c28a70d7893da05219fdbe4fd9c1350d.tar.bz2 libADLMIDI-fda87042c28a70d7893da05219fdbe4fd9c1350d.zip |
VLC Plugin: Apply dynamic list as at libOPNMIDI
So, disabled emulators won't show in the list.
-rw-r--r-- | utils/vlc_codec/libadlmidi.c | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c index cada489..8946880 100644 --- a/utils/vlc_codec/libadlmidi.c +++ b/utils/vlc_codec/libadlmidi.c @@ -158,20 +158,63 @@ static const char * const channel_alloc_descriptions[] = static const int emulator_type_values[] = { - 0, 1, 2, 3, 4, 5, 6 +#ifndef ADLMIDI_DISABLE_NUKED_EMULATOR + (int)ADLMIDI_EMU_NUKED, + (int)ADLMIDI_EMU_NUKED_174, +#endif + +#ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR + (int)ADLMIDI_EMU_DOSBOX, +#endif + +#ifndef ADLMIDI_DISABLE_OPAL_EMULATOR + (int)ADLMIDI_EMU_OPAL, +#endif + +#ifndef ADLMIDI_DISABLE_JAVA_EMULATOR + (int)ADLMIDI_EMU_JAVA, +#endif + +#ifndef ADLMIDI_DISABLE_ESFMU_EMULATOR + (int)ADLMIDI_EMU_ESFMu, +#endif + +#ifndef ADLMIDI_DISABLE_MAME_OPL2_EMULATOR + (int)ADLMIDI_EMU_MAME_OPL2, +#endif + #ifndef ADLMIDI_DISABLE_YMFM_EMULATOR - , 7, 8 + (int)ADLMIDI_EMU_YMFM_OPL2, + (int)ADLMIDI_EMU_YMFM_OPL3, #endif }; static const char * const emulator_type_descriptions[] = { +#ifndef ADLMIDI_DISABLE_NUKED_EMULATOR N_("Nuked OPL3 1.8"), N_("Nuked OPL3 1.7.4 (Optimized)"), +#endif + +#ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR N_("DOSBox"), +#endif + +#ifndef ADLMIDI_DISABLE_OPAL_EMULATOR N_("Opal"), +#endif + +#ifndef ADLMIDI_DISABLE_JAVA_EMULATOR N_("Java OPL3"), +#endif + +#ifndef ADLMIDI_DISABLE_ESFMU_EMULATOR N_("ESFMu"), +#endif + +#ifndef ADLMIDI_DISABLE_MAME_OPL2_EMULATOR N_("MAME OPL2"), +#endif + #ifndef ADLMIDI_DISABLE_YMFM_EMULATOR N_("YMFM OPL2"), N_("YMFM OPL3"), |