| 1126 | } |
| 1127 | |
| 1128 | OVR_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 | |
| 1145 | OVR_PUBLIC_FUNCTION(ovrBool) ovr_SetInt(ovrSession session, const char* propertyName, int value) |
| 1146 | { |
nothing calls this directly
no outgoing calls
no test coverage detected