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

Function sm_GetCommandLineParamInt

core/smn_commandline.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static cell_t sm_GetCommandLineParamInt(IPluginContext *pCtx, const cell_t *params)
77{
78 ICommandLine *pCmdLine = g_HL2.GetValveCommandLine();
79
80 if (pCmdLine == NULL)
81 {
82 return pCtx->ThrowNativeError("Unable to get valve command line");
83 }
84
85 char *param = NULL;
86 pCtx->LocalToString(params[1], &param);
87
88 return pCmdLine->ParmValue(param, params[2]);
89}
90
91static cell_t sm_GetCommandLineParamFloat(IPluginContext *pCtx, const cell_t *params)
92{

Callers

nothing calls this directly

Calls 1

GetValveCommandLineMethod · 0.80

Tested by

no test coverage detected