| 539 | } |
| 540 | |
| 541 | static cell_t sm_GetConVarFlags(IPluginContext *pContext, const cell_t *params) |
| 542 | { |
| 543 | Handle_t hndl = static_cast<Handle_t>(params[1]); |
| 544 | HandleError err; |
| 545 | ConVar *pConVar; |
| 546 | |
| 547 | if ((err=g_ConVarManager.ReadConVarHandle(hndl, &pConVar)) |
| 548 | != HandleError_None) |
| 549 | { |
| 550 | return pContext->ThrowNativeError("Invalid convar handle %x (error %d)", hndl, err); |
| 551 | } |
| 552 | |
| 553 | return pConVar->m_nFlags; |
| 554 | } |
| 555 | |
| 556 | static cell_t sm_GetConVarPlugin(IPluginContext *pContext, const cell_t *params) |
| 557 | { |
nothing calls this directly
no test coverage detected