()
| 8070 | } |
| 8071 | |
| 8072 | public static string RuntimePath() |
| 8073 | { |
| 8074 | try |
| 8075 | { |
| 8076 | uint pathSize = 512; |
| 8077 | uint requiredPathSize = 512; |
| 8078 | System.Text.StringBuilder path = new System.Text.StringBuilder((int)pathSize); |
| 8079 | bool success = OpenVRInterop.GetRuntimePath(path, pathSize, ref requiredPathSize); |
| 8080 | if (success == false) |
| 8081 | { |
| 8082 | return null; |
| 8083 | } |
| 8084 | |
| 8085 | return path.ToString(); |
| 8086 | } catch |
| 8087 | { |
| 8088 | return OpenVRInterop.RuntimePath(); //this api is deprecated but here to support older unity versions |
| 8089 | } |
| 8090 | } |
| 8091 | |
| 8092 | public static string GetStringForHmdError(EVRInitError error) |
| 8093 | { |
nothing calls this directly
no test coverage detected