MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ConfigKeyExists

Method ConfigKeyExists

pcsx2/USB/USB.cpp:674–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674bool USB::ConfigKeyExists(SettingsInterface& si, u32 port, const char* devname, const char* key)
675{
676 const std::string real_key(fmt::format("{}_{}", devname, key));
677 return si.ContainsValue(GetConfigSection(port).c_str(), real_key.c_str());
678}
679
680bool USB::GetConfigBool(SettingsInterface& si, u32 port, const char* devname, const char* key, bool default_value)
681{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.50
ContainsValueMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected