MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_Destroy

Function ovr_Destroy

ReviveXR/REV_CAPI.cpp:223–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223OVR_PUBLIC_FUNCTION(void) ovr_Destroy(ovrSession session)
224{
225 REV_TRACE(ovr_Destroy);
226
227 session->DestroySession();
228
229 if (!session->HookedFunctions.empty())
230 {
231 DetourTransactionBegin();
232 DetourUpdateThread(GetCurrentThread());
233 for (auto it : session->HookedFunctions)
234 DetourDetach(it.first, it.second);
235 DetourTransactionCommit();
236 }
237
238 // Delete the session from the list of sessions
239 g_Sessions.erase(std::find_if(g_Sessions.begin(), g_Sessions.end(), [session](ovrHmdStruct const& o) { return &o == session; }));
240}
241
242OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetSessionStatus(ovrSession session, ovrSessionStatus* sessionStatus)
243{

Callers 1

ovr_ShutdownFunction · 0.70

Calls 2

DestroySessionMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected