Fix casing of the legacy VST entry point name

This commit is contained in:
Robbert van der Helm
2020-04-16 01:25:38 +02:00
parent 1a90b8f7a3
commit 36350c34de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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)));