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

Function VR_InitInternal2

src/openvr_api_public.cpp:56–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56uint32_t VR_InitInternal2( EVRInitError *peError, vr::EVRApplicationType eApplicationType, const char *pStartupInfo )
57{
58 std::lock_guard<std::recursive_mutex> lock( g_mutexSystem );
59
60 EVRInitError err = VR_LoadHmdSystemInternal();
61 if ( err == vr::VRInitError_None )
62 {
63 err = g_pHmdSystem->Init( eApplicationType, pStartupInfo );
64 }
65
66 if ( peError )
67 *peError = err;
68
69 if ( err != VRInitError_None )
70 {
71 SharedLib_Unload( g_pVRModule );
72 g_pHmdSystem = NULL;
73 g_pVRModule = NULL;
74
75 return 0;
76 }
77
78 return ++g_nVRToken;
79}
80
81VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType );
82

Callers 2

VR_InitInternalFunction · 0.85
VR_InitFunction · 0.85

Calls 3

VR_LoadHmdSystemInternalFunction · 0.85
SharedLib_UnloadFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected