| 144 | } |
| 145 | |
| 146 | void CForwardManager::OnPluginPauseChange(IPlugin *plugin, bool paused) |
| 147 | { |
| 148 | if (paused) |
| 149 | return; |
| 150 | |
| 151 | /* Attach any globally managed forwards */ |
| 152 | for (ForwardIter iter(m_managed); !iter.done(); iter.next()) { |
| 153 | CForward *fwd = (*iter); |
| 154 | IPluginFunction *pFunc = plugin->GetBaseContext()->GetFunctionByName(fwd->GetForwardName()); |
| 155 | // Only add functions, if they aren't registered yet! |
| 156 | if (pFunc && !fwd->IsFunctionRegistered(pFunc)) |
| 157 | { |
| 158 | fwd->AddFunction(pFunc); |
| 159 | } |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /************************************* |
| 164 | * ACTUAL FORWARD API IMPLEMENTATION * |
nothing calls this directly
no test coverage detected