MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / FromString

Method FromString

IntelPresentMon/Core/source/win/Key.cpp:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 }
218
219 std::optional<Key> Key::FromString(const std::string& s)
220 {
221 if (auto pDesc = Registry::Get().LookupText(s))
222 {
223 return Key{ pDesc->code };
224 }
225 return {};
226 }
227
228 std::optional<Key> Key::FromPlatformCode(uint32_t p)
229 {

Callers

nothing calls this directly

Calls 1

LookupTextMethod · 0.45

Tested by

no test coverage detected