mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Fix casing of the legacy VST entry point name
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
extern "C" {
|
||||
extern VST_EXPORT AEffect* VSTPluginMain(audioMasterCallback);
|
||||
|
||||
VST_EXPORT AEffect* MAIN(audioMasterCallback audioMaster) {
|
||||
VST_EXPORT AEffect* main(audioMasterCallback audioMaster) {
|
||||
return VSTPluginMain(audioMaster);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ PluginBridge::PluginBridge(std::string plugin_dll_path,
|
||||
// VST plugin entry point functions should be called `VSTPluginMain`, but
|
||||
// there are some older deprecated names that legacy plugins may still use
|
||||
VstEntryPoint vst_entry_point = nullptr;
|
||||
for (auto name : {"VSTPluginMain", "MAIN", "main_plugin"}) {
|
||||
for (auto name : {"VSTPluginMain", "main", "main_plugin"}) {
|
||||
vst_entry_point =
|
||||
reinterpret_cast<VstEntryPoint>(reinterpret_cast<size_t>(
|
||||
GetProcAddress(plugin_handle.get(), name)));
|
||||
|
||||
Reference in New Issue
Block a user