13
0

detect VST >= 2.4 plugins.

This commit is contained in:
Robin Gareus 2013-12-07 18:04:31 +01:00
parent ce7bfb489c
commit 0c2494595d

View File

@ -242,7 +242,9 @@ vstfx_load (const char *path)
/*Find the main entry point into the plugin*/
if ((fhandle->main_entry = (main_entry_t) dlsym(fhandle->dll, "main")) == 0)
if ((fhandle->main_entry = (main_entry_t) dlsym(fhandle->dll, "main")) == 0 &&
(fhandle->main_entry = (main_entry_t) dlsym(fhandle->dll, "VSTPluginMain")) == 0
)
{
/*If it can't be found, unload the plugin and return a 0 handle*/