MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetInt

Function ovr_GetInt

Revive/REV_CAPI.cpp:1128–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126}
1127
1128OVR_PUBLIC_FUNCTION(int) ovr_GetInt(ovrSession session, const char* propertyName, int defaultVal)
1129{
1130 REV_TRACE(ovr_GetInt);
1131
1132 if (strcmp("TextureSwapChainDepth", propertyName) == 0)
1133 return REV_SWAPCHAIN_MAX_LENGTH;
1134
1135 if (session)
1136 {
1137 vr::EVRSettingsError error = vr::VRSettingsError_None;
1138 int prop = vr::VRSettings()->GetInt32(session->AppKey, propertyName, &error);
1139 if (error == vr::VRSettingsError_None)
1140 return prop;
1141 }
1142 return defaultVal;
1143}
1144
1145OVR_PUBLIC_FUNCTION(ovrBool) ovr_SetInt(ovrSession session, const char* propertyName, int value)
1146{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected