vrclient: fix up const types

This commit is contained in:
Andrew Eikum 2019-09-18 09:05:00 -05:00
parent 223286df88
commit 3fecadaf4e
37 changed files with 125 additions and 129 deletions

View file

@ -81,13 +81,11 @@ uint32_t cppIVRRenderModels_IVRRenderModels_004_GetComponentRenderModelName(void
bool cppIVRRenderModels_IVRRenderModels_004_GetComponentState(void *linux_side, const char * pchRenderModelName, const char * pchComponentName, VRControllerState_t * pControllerState, RenderModel_ControllerMode_State_t * pState, RenderModel_ComponentState_t * pComponentState)
{
const VRControllerState_t lin;
VRControllerState_t lin;
bool _ret;
if(pControllerState)
struct_const VRControllerState_t_0918_win_to_lin(pControllerState, &lin);
struct_VRControllerState_t_0918_win_to_lin(pControllerState, &lin);
_ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState);
if(pControllerState)
struct_const VRControllerState_t_0918_lin_to_win(&lin, pControllerState);
return _ret;
}