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

Method FindForward

core/logic/ForwardSys.cpp:112–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112IForward *CForwardManager::FindForward(const char *name, IChangeableForward **ifchng)
113{
114 for (ForwardIter iter(m_managed); !iter.done(); iter.next()) {
115 CForward *fwd = (*iter);
116 if (strcmp(fwd->GetForwardName(), name) == 0) {
117 if (ifchng)
118 *ifchng = NULL;
119 return fwd;
120 }
121 }
122
123 for (ForwardIter iter(m_unmanaged); !iter.done(); iter.next()) {
124 CForward *fwd = (*iter);
125 if (strcmp(fwd->GetForwardName(), name) == 0) {
126 if (ifchng)
127 *ifchng = fwd;
128 return fwd;
129 }
130 }
131
132 if (ifchng)
133 *ifchng = NULL;
134
135 return NULL;
136}
137
138void CForwardManager::ReleaseForward(IForward *aForward)
139{

Callers

nothing calls this directly

Calls 3

doneMethod · 0.80
nextMethod · 0.80
GetForwardNameMethod · 0.80

Tested by

no test coverage detected