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

Method OnSourceModStartup

core/logic/RootConsoleMenu.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void RootConsoleMenu::OnSourceModStartup(bool late)
55{
56 AddRootConsoleCommand3("version", "Display version information", this);
57 AddRootConsoleCommand3("credits", "Display credits listing", this);
58
59 bridge->DefineCommand("sm_dump_handles", "Dumps Handle usage to a file for finding Handle leaks",
60 sm_dump_handles);
61 bridge->DefineCommand("sm", "SourceMod Menu", [this] (int client, const ICommandArgs *args) -> bool {
62 GotRootCmd(args);
63 return true;
64 });
65}
66
67void RootConsoleMenu::OnSourceModAllInitialized()
68{

Callers

nothing calls this directly

Calls 1

DefineCommandMethod · 0.80

Tested by

no test coverage detected