| 74 | } |
| 75 | |
| 76 | static 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], ¶m); |
| 87 | |
| 88 | return pCmdLine->ParmValue(param, params[2]); |
| 89 | } |
| 90 | |
| 91 | static cell_t sm_GetCommandLineParamFloat(IPluginContext *pCtx, const cell_t *params) |
| 92 | { |
nothing calls this directly
no test coverage detected