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

Method SetFlags

core/smn_console.cpp:159–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158 }
159 bool SetFlags(const char *name, int flags)
160 {
161 ConCommandBase *pCmd;
162 if (m_CmdFlags.retrieve(name, &pCmd))
163 {
164 pCmd->m_nFlags = flags;
165 TrackConCommandBase(pCmd, this);
166 return true;
167 }
168 else if ((pCmd=FindCommandBase(name)))
169 {
170 m_CmdFlags.insert(name, pCmd);
171 pCmd->m_nFlags = flags;
172 TrackConCommandBase(pCmd, this);
173 return true;
174 }
175 else
176 {
177 return false;
178 }
179 }
180private:
181 struct ConCommandPolicy
182 {

Callers 1

SetCommandFlagsFunction · 0.80

Calls 4

TrackConCommandBaseFunction · 0.85
FindCommandBaseFunction · 0.85
retrieveMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected