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

Function ovr_Initialize

ReviveXR/REV_CAPI.cpp:58–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56void DetachDetours();
57
58OVR_PUBLIC_FUNCTION(ovrResult) ovr_Initialize(const ovrInitParams* params)
59{
60 if (g_Instance)
61 return ovrSuccess;
62
63#if 0
64 LoadRenderDoc();
65#endif
66
67 MicroProfileOnThreadCreate("Main");
68 MicroProfileSetForceEnable(true);
69 MicroProfileSetEnableAllGroups(true);
70 MicroProfileSetForceMetaCounters(true);
71 MicroProfileWebServerStart();
72
73 DetachDetours();
74 ovrResult rs = Runtime::Get().CreateInstance(&g_Instance, params);
75 AttachDetours();
76 return rs;
77}
78
79OVR_PUBLIC_FUNCTION(void) ovr_Shutdown()
80{

Callers

nothing calls this directly

Calls 4

CreateInstanceMethod · 0.80
LoadRenderDocFunction · 0.70
DetachDetoursFunction · 0.70
AttachDetoursFunction · 0.70

Tested by

no test coverage detected