Beispiel #1
0
 // Token: 0x060001F8 RID: 504 RVA: 0x0000D39C File Offset: 0x0000B59C
 public static uint InitInternal(ref global::Valve.VR.EVRInitError peError, global::Valve.VR.EVRApplicationType eApplicationType)
 {
     return(global::Valve.VR.OpenVRInterop.InitInternal(ref peError, eApplicationType));
 }
Beispiel #2
0
 internal static extern uint InitInternal(ref global::Valve.VR.EVRInitError peError, global::Valve.VR.EVRApplicationType eApplicationType);
Beispiel #3
0
        // Token: 0x0600020C RID: 524 RVA: 0x0000D598 File Offset: 0x0000B798
        public static global::Valve.VR.CVRSystem Init(ref global::Valve.VR.EVRInitError peError, global::Valve.VR.EVRApplicationType eApplicationType = global::Valve.VR.EVRApplicationType.VRApplication_Scene)
        {
            global::Valve.VR.OpenVR.VRToken = global::Valve.VR.OpenVR.InitInternal(ref peError, eApplicationType);
            global::Valve.VR.OpenVR.OpenVRInternal_ModuleContext.Clear();
            bool flag = peError > global::Valve.VR.EVRInitError.None;

            global::Valve.VR.CVRSystem result;
            if (flag)
            {
                result = null;
            }
            else
            {
                bool flag2 = global::Valve.VR.OpenVR.IsInterfaceVersionValid("IVRSystem_012");
                bool flag3 = !flag2;
                if (flag3)
                {
                    global::Valve.VR.OpenVR.ShutdownInternal();
                    peError = global::Valve.VR.EVRInitError.Init_InterfaceNotFound;
                    result  = null;
                }
                else
                {
                    result = global::Valve.VR.OpenVR.System;
                }
            }
            return(result);
        }