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

Function sm_FindCommandLineParam

core/smn_commandline.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static cell_t sm_FindCommandLineParam(IPluginContext *pCtx, const cell_t *params)
109{
110 ICommandLine *pCmdLine = g_HL2.GetValveCommandLine();
111
112 if (pCmdLine == NULL)
113 {
114 return pCtx->ThrowNativeError("Unable to get valve command line");
115 }
116
117 char *param = NULL;
118 pCtx->LocalToString(params[1], &param);
119
120 return pCmdLine->FindParm(param);
121}
122
123REGISTER_NATIVES(commandlinenatives)
124{

Callers

nothing calls this directly

Calls 1

GetValveCommandLineMethod · 0.80

Tested by

no test coverage detected