mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Change entry point search order
Shouldn't matter at all, but `main` is such a generic and ambiguous name it should probably be the last option.
This commit is contained in:
@@ -76,7 +76,7 @@ PluginBridge::PluginBridge(std::string plugin_dll_path,
|
|||||||
// VST plugin entry point functions should be called `VSTPluginMain`, but
|
// VST plugin entry point functions should be called `VSTPluginMain`, but
|
||||||
// there are some older deprecated names that legacy plugins may still use
|
// there are some older deprecated names that legacy plugins may still use
|
||||||
VstEntryPoint vst_entry_point = nullptr;
|
VstEntryPoint vst_entry_point = nullptr;
|
||||||
for (auto name : {"VSTPluginMain", "main", "main_plugin"}) {
|
for (auto name : {"VSTPluginMain", "main_plugin", "main"}) {
|
||||||
vst_entry_point =
|
vst_entry_point =
|
||||||
reinterpret_cast<VstEntryPoint>(reinterpret_cast<size_t>(
|
reinterpret_cast<VstEntryPoint>(reinterpret_cast<size_t>(
|
||||||
GetProcAddress(plugin_handle.get(), name)));
|
GetProcAddress(plugin_handle.get(), name)));
|
||||||
|
|||||||
Reference in New Issue
Block a user