| 86 | } |
| 87 | |
| 88 | void VR_ShutdownInternal() |
| 89 | { |
| 90 | std::lock_guard<std::recursive_mutex> lock( g_mutexSystem ); |
| 91 | |
| 92 | #if !defined( VR_API_PUBLIC ) |
| 93 | CleanupInternalInterfaces(); |
| 94 | #endif |
| 95 | |
| 96 | if ( g_pHmdSystem ) |
| 97 | { |
| 98 | g_pHmdSystem->Cleanup(); |
| 99 | g_pHmdSystem = NULL; |
| 100 | } |
| 101 | |
| 102 | if ( g_pVRModule ) |
| 103 | { |
| 104 | SharedLib_Unload( g_pVRModule ); |
| 105 | g_pVRModule = NULL; |
| 106 | } |
| 107 | |
| 108 | ++g_nVRToken; |
| 109 | } |
| 110 | |
| 111 | EVRInitError VR_LoadHmdSystemInternal() |
| 112 | { |
no test coverage detected