|
|
@ -195,6 +195,9 @@ bool Plugin::load(color_ostream &con)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// enter suspend
|
|
|
|
|
|
|
|
CoreSuspender suspend;
|
|
|
|
|
|
|
|
// open the library, etc
|
|
|
|
DFLibrary * plug = OpenPlugin(filename.c_str());
|
|
|
|
DFLibrary * plug = OpenPlugin(filename.c_str());
|
|
|
|
if(!plug)
|
|
|
|
if(!plug)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -270,6 +273,8 @@ bool Plugin::unload(color_ostream &con)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// wait for all calls to finish
|
|
|
|
// wait for all calls to finish
|
|
|
|
access->wait();
|
|
|
|
access->wait();
|
|
|
|
|
|
|
|
// enter suspend
|
|
|
|
|
|
|
|
CoreSuspender suspend;
|
|
|
|
// notify plugin about shutdown, if it has a shutdown function
|
|
|
|
// notify plugin about shutdown, if it has a shutdown function
|
|
|
|
command_result cr = CR_OK;
|
|
|
|
command_result cr = CR_OK;
|
|
|
|
if(plugin_shutdown)
|
|
|
|
if(plugin_shutdown)
|
|
|
|