MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnPluginPauseChange

Method OnPluginPauseChange

core/logic/ForwardSys.cpp:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void 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 *

Callers

nothing calls this directly

Calls 6

doneMethod · 0.80
nextMethod · 0.80
GetBaseContextMethod · 0.80
GetForwardNameMethod · 0.80
IsFunctionRegisteredMethod · 0.80
AddFunctionMethod · 0.80

Tested by

no test coverage detected