mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
Remove non-existent VST2 entry point
Since there isn't any public documentation on VST2, I saw JUCE and a couple of other plugins and bridges use this, but they all redefined the symbol to`main`.
This commit is contained in:
@@ -144,9 +144,9 @@ Vst2Bridge::Vst2Bridge(MainContext& main_context,
|
||||
}
|
||||
|
||||
// VST plugin entry point functions should be called `VSTPluginMain`, but
|
||||
// there are some older deprecated names that legacy plugins may still use
|
||||
// pre-VST2.4 `main` was also a valid name
|
||||
VstEntryPoint vst_entry_point = nullptr;
|
||||
for (auto name : {"VSTPluginMain", "main_plugin", "main"}) {
|
||||
for (auto name : {"VSTPluginMain", "main"}) {
|
||||
vst_entry_point =
|
||||
reinterpret_cast<VstEntryPoint>(reinterpret_cast<size_t>(
|
||||
GetProcAddress(plugin_handle.get(), name)));
|
||||
|
||||
Reference in New Issue
Block a user