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

Method FromString

IntelPresentMon/Core/source/win/ModSet.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 std::optional<ModSet> ModSet::FromString(const std::string& s)
122 {
123 if (auto pDesc = Registry::Get().LookupText(s))
124 {
125 return ModSet{ pDesc->code };
126 }
127 return {};
128 }
129
130 std::optional<ModSet> ModSet::SingleModFromCode(uint32_t p)
131 {

Callers

nothing calls this directly

Calls 1

LookupTextMethod · 0.45

Tested by

no test coverage detected