Rename QueryHookMode to ClientCvarQueryMode.
This commit is contained in:
@@ -639,20 +639,20 @@ void CoreProviderImpl::UnloadMMSPlugin(int id)
|
||||
|
||||
bool CoreProviderImpl::IsClientConVarQueryingSupported()
|
||||
{
|
||||
return hooks_.GetQueryHookMode() != QueryHookMode::Unavailable;
|
||||
return hooks_.GetClientCvarQueryMode() != ClientCvarQueryMode::Unavailable;
|
||||
}
|
||||
|
||||
int CoreProviderImpl::QueryClientConVar(int client, const char *cvar)
|
||||
{
|
||||
#if SOURCE_ENGINE != SE_DARKMESSIAH
|
||||
switch (hooks_.GetQueryHookMode()) {
|
||||
case QueryHookMode::DLL:
|
||||
switch (hooks_.GetClientCvarQueryMode()) {
|
||||
case ClientCvarQueryMode::DLL:
|
||||
# if SOURCE_ENGINE == SE_DOTA
|
||||
return ::engine->StartQueryCvarValue(CEntityIndex(client), cvar);
|
||||
# else
|
||||
return ::engine->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
|
||||
# endif
|
||||
case QueryHookMode::VSP:
|
||||
case ClientCvarQueryMode::VSP:
|
||||
# if SOURCE_ENGINE != SE_DOTA
|
||||
return serverpluginhelpers->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user