| 56 | void DetachDetours(); |
| 57 | |
| 58 | OVR_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 | |
| 79 | OVR_PUBLIC_FUNCTION(void) ovr_Shutdown() |
| 80 | { |
nothing calls this directly
no test coverage detected