| 26 | } |
| 27 | |
| 28 | static const char* GetActiveRuntimeDLLName() { |
| 29 | static std::once_flag sOnce; |
| 30 | static const char* sActiveRuntime {nullptr}; |
| 31 | std::call_once(sOnce, [&runtime = sActiveRuntime]() { |
| 32 | for (const auto it: OVRRuntimeDLLNames) { |
| 33 | if (GetModuleHandleA(it)) { |
| 34 | dprint("OVRProxy found runtime: {}", it); |
| 35 | runtime = it; |
| 36 | return; |
| 37 | } |
| 38 | } |
| 39 | }); |
| 40 | return sActiveRuntime; |
| 41 | } |
| 42 | |
| 43 | #define X(x) \ |
| 44 | x(reinterpret_cast<decltype(x)>( \ |
nothing calls this directly
no outgoing calls
no test coverage detected