MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / RuntimePath

Method RuntimePath

headers/openvr_api.cs:8072–8090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

GetRuntimePathMethod · 0.45

Tested by

no test coverage detected