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

Method OnLibraryAction

core/logic/PluginSys.cpp:2177–2190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2175}
2176
2177void CPluginManager::OnLibraryAction(const char *lib, LibraryAction action)
2178{
2179 switch (action)
2180 {
2181 case LibraryAction_Removed:
2182 m_pOnLibraryRemoved->PushString(lib);
2183 m_pOnLibraryRemoved->Execute(NULL);
2184 break;
2185 case LibraryAction_Added:
2186 m_pOnLibraryAdded->PushString(lib);
2187 m_pOnLibraryAdded->Execute(NULL);
2188 break;
2189 }
2190}
2191
2192bool CPluginManager::LibraryExists(const char *lib)
2193{

Callers 3

UnloadExtensionMethod · 0.80
AddLibraryMethod · 0.80
LibraryActionsMethod · 0.80

Calls 2

PushStringMethod · 0.80
ExecuteMethod · 0.45

Tested by

no test coverage detected