MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / GetIfExists

Method GetIfExists

FEXCore/Source/Interface/Config/Config.cpp:448–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447template<typename T>
448T Value<T>::GetIfExists(FEXCore::Config::ConfigOption Option, T Default) {
449 auto Value = FEXCore::Config::GetConv<T>(Option);
450 if (Value) {
451 return *Value;
452 }
453
454 return Default;
455}
456
457template<>
458fextl::string Value<fextl::string>::GetIfExists(FEXCore::Config::ConfigOption Option, fextl::string Default) {

Callers

nothing calls this directly

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected