//================================================================================= // It's important to note that we can't just unload the plugin here and now, // because the plugin code is still running the call-stack. /*virtual*/ bool PluginManager::PluginAssistant::UnloadPlugin( const wxString& libraryPath ) { PluginManager* pluginManager = wxGetApp().GetPluginManager(); Cornucopia::Path path( ( const char* )libraryPath.c_str() ); if( pluginManager && pluginManager->UnloadPluginLater( path ) ) return true; return false; }