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

Function Hook_ExecDispatchPre

core/CoreConfig.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73#else
74SH_DECL_EXTERN0_void(ConCommand, Dispatch, SH_NOATTRIB, false);
75void Hook_ExecDispatchPre()
76#endif
77{
78#if SOURCE_ENGINE <= SE_DARKMESSIAH
79 CCommand cmd;
80#endif
81
82 const char *arg = cmd.Arg(1);
83
84 if (!g_bServerExecd && arg != NULL && strcmp(arg, g_ServerCfgFile->GetString()) == 0)
85 {
86 g_bGotTrigger = true;
87 }
88}
89
90#if SOURCE_ENGINE >= SE_ORANGEBOX
91void Hook_ExecDispatchPost(const CCommand &cmd)

Callers

nothing calls this directly

Calls 2

ArgMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected