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

Method ReadConVarHandle

core/ConVarManager.cpp:720–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718#endif
719
720HandleError ConVarManager::ReadConVarHandle(Handle_t hndl, ConVar **pVar, IPlugin **ppPlugin)
721{
722 ConVarInfo *pInfo;
723 HandleError error;
724
725 if ((error = handlesys->ReadHandle(hndl, m_ConVarType, NULL, (void **)&pInfo)) != HandleError_None)
726 {
727 return error;
728 }
729
730 if (pVar)
731 {
732 *pVar = pInfo->pVar;
733 }
734
735 if (ppPlugin)
736 {
737 *ppPlugin = pInfo->pPlugin;
738 }
739
740 return error;
741}

Callers 15

sm_HookConVarChangeFunction · 0.80
sm_UnhookConVarChangeFunction · 0.80
sm_GetConVarBoolFunction · 0.80
sm_GetConVarIntFunction · 0.80
sm_SetConVarNumFunction · 0.80
sm_GetConVarFloatFunction · 0.80
sm_SetConVarFloatFunction · 0.80
sm_GetConVarStringFunction · 0.80
sm_SetConVarStringFunction · 0.80
sm_ResetConVarFunction · 0.80
GetConVarDefaultFunction · 0.80
sm_GetConVarFlagsFunction · 0.80

Calls 1

ReadHandleMethod · 0.45

Tested by

no test coverage detected