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

Method OnSourceModAllInitialized

core/MenuManager.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void MenuManager::OnSourceModAllInitialized()
57{
58 sharesys->AddInterface(NULL, this);
59
60 HandleAccess access;
61 handlesys->InitAccessDefaults(NULL, &access);
62
63 /* Deny cloning to menus */
64 access.access[HandleAccess_Clone] = HANDLE_RESTRICT_OWNER|HANDLE_RESTRICT_IDENTITY;
65 m_MenuType = handlesys->CreateType("IBaseMenu", this, 0, NULL, &access, g_pCoreIdent, NULL);
66
67 /* Also deny deletion to styles */
68 access.access[HandleAccess_Delete] = HANDLE_RESTRICT_OWNER|HANDLE_RESTRICT_IDENTITY;
69 m_StyleType = handlesys->CreateType("IMenuStyle", this, 0, NULL, &access, g_pCoreIdent, NULL);
70}
71
72void MenuManager::OnSourceModAllInitialized_Post()
73{

Callers

nothing calls this directly

Calls 3

InitAccessDefaultsMethod · 0.80
CreateTypeMethod · 0.80
AddInterfaceMethod · 0.45

Tested by

no test coverage detected