| 54 | |
| 55 | |
| 56 | uint32_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 | |
| 81 | VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType ); |
| 82 |
no test coverage detected