Returns where OpenVR runtime is installed. */
| 268 | |
| 269 | /** Returns where OpenVR runtime is installed. */ |
| 270 | const char *VR_RuntimePath() |
| 271 | { |
| 272 | static char rchBuffer[1024]; |
| 273 | uint32_t unRequiredSize; |
| 274 | if ( VR_GetRuntimePath( rchBuffer, sizeof( rchBuffer ), &unRequiredSize ) && unRequiredSize < sizeof( rchBuffer ) ) |
| 275 | { |
| 276 | return rchBuffer; |
| 277 | } |
| 278 | else |
| 279 | { |
| 280 | return nullptr; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | |
| 285 | /** Returns where OpenVR runtime is installed. */ |
nothing calls this directly
no test coverage detected