| 718 | #endif |
| 719 | |
| 720 | HandleError ConVarManager::ReadConVarHandle(Handle_t hndl, ConVar **pVar, IPlugin **ppPlugin) |
| 721 | { |
| 722 | ConVarInfo *pInfo; |
| 723 | HandleError error; |
| 724 | |
| 725 | if ((error = handlesys->ReadHandle(hndl, m_ConVarType, NULL, (void **)&pInfo)) != HandleError_None) |
| 726 | { |
| 727 | return error; |
| 728 | } |
| 729 | |
| 730 | if (pVar) |
| 731 | { |
| 732 | *pVar = pInfo->pVar; |
| 733 | } |
| 734 | |
| 735 | if (ppPlugin) |
| 736 | { |
| 737 | *ppPlugin = pInfo->pPlugin; |
| 738 | } |
| 739 | |
| 740 | return error; |
| 741 | } |
no test coverage detected