Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40436
This commit is contained in:
@@ -385,6 +385,8 @@ bool CPlugin::SetPauseState(bool paused)
|
||||
pFunction->Execute(&result);
|
||||
}
|
||||
|
||||
g_PluginSys._SetPauseState(this, paused);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1636,3 +1638,14 @@ void CPluginManager::ReloadOrUnloadPlugins()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CPluginManager::_SetPauseState(CPlugin *pl, bool paused)
|
||||
{
|
||||
List<IPluginsListener *>::iterator iter;
|
||||
IPluginsListener *pListener;
|
||||
for (iter=m_listeners.begin(); iter!=m_listeners.end(); iter++)
|
||||
{
|
||||
pListener = (*iter);
|
||||
pListener->OnPluginPauseChange(pl, paused);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user