MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / ForceSet

Method ForceSet

CrySystem/XConsoleVariable.cpp:203–225  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

201
202//////////////////////////////////////////////////////////////////////////
203void CXConsoleVariable::ForceSet(const char* s)
204{
205 bool bCheat=false;
206 bool bReadOnly=false;
207 if (m_nFlags & VF_READONLY)
208 {
209 m_nFlags&=~VF_READONLY;
210 bReadOnly=true;
211 }
212
213 if (m_nFlags & VF_CHEAT)
214 {
215 m_nFlags&=~VF_CHEAT;
216 bCheat=true;
217 }
218
219 Set(s);
220
221 if (bReadOnly)
222 m_nFlags|=VF_READONLY;
223 if (bCheat)
224 m_nFlags|=VF_CHEAT;
225}
226
227//////////////////////////////////////////////////////////////////////////
228void CXConsoleVariable::Set(const char* s)

Callers 5

PBcvar_SetFunction · 0.80
CreateConsoleVarsMethod · 0.80
RunGameFunction · 0.80
SetDevModeMethod · 0.80
InitConsoleVarsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected