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

Method GetBoolValue

pcsx2/INISettingsInterface.cpp:198–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool INISettingsInterface::GetBoolValue(const char* section, const char* key, bool* value) const
199{
200 const char* str_value = m_ini.GetValue(section, key);
201 if (!str_value)
202 return false;
203
204 std::optional<bool> parsed_value = StringUtil::FromChars<bool>(str_value);
205 if (!parsed_value.has_value())
206 return false;
207
208 *value = parsed_value.value();
209 return true;
210}
211
212bool INISettingsInterface::GetStringValue(const char* section, const char* key, std::string* value) const
213{

Callers 15

Main.cppFile · 0.45
BindWidgetToBoolSettingFunction · 0.45
loadSettingsMethod · 0.45
InitializeConfigMethod · 0.45
onNewProfileClickedMethod · 0.45
onApplyProfileClickedMethod · 0.45
getBoolValueMethod · 0.45
createWidgetsMethod · 0.45
onEthHostImportMethod · 0.45

Calls 2

GetValueMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected