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

Method InitIdentity

core/logic/PluginSys.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void CPlugin::InitIdentity()
96{
97 if (m_handle)
98 return;
99
100 m_ident = g_ShareSys.CreateIdentity(g_PluginIdent, this);
101 m_handle = handlesys->CreateHandle(g_PluginType, this, g_PluginSys.GetIdentity(), g_PluginSys.GetIdentity(), NULL);
102 m_pRuntime->SetKey(1, m_ident);
103 m_pRuntime->SetKey(2, (IPlugin *)this);
104}
105
106void CPlugin::DestroyIdentity()
107{

Callers 1

CompileAndPrepMethod · 0.80

Calls 3

CreateIdentityMethod · 0.45
CreateHandleMethod · 0.45
GetIdentityMethod · 0.45

Tested by

no test coverage detected