MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetActiveRuntimeDLLName

Function GetActiveRuntimeDLLName

src/injectables/OVRProxy.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static 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)>( \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected