HINSTANCE DLLHandle = LoadLibraryA( "bsp.dll" );
AWAKE_LOG( ML_LOW, MT_INFO, "Loading dll [b]" + iter->leaf() + "[/b] from [b]" + path + "[/b]" );
if( !DLLHandle )
continue;
entryPoint = (EntryPointPtr)GetProcAddress( DLLHandle, "PluginInit" );
if( !entryPoint )
{
AWAKE_LOG( MT_WARNING, iter->leaf() + " is no valid dll (Entrypoint not found)!" );
continue;
}
// Call entry point
int pluginVersion = entryPoint();