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:
Robbert van der Helm
2021-06-29 12:11:05 +02:00
parent c067cd1b40
commit 9b1f3a5f4c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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)));