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

Method GetIntValue

pcsx2/INISettingsInterface.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142bool INISettingsInterface::GetIntValue(const char* section, const char* key, int* value) const
143{
144 const char* str_value = m_ini.GetValue(section, key);
145 if (!str_value)
146 return false;
147
148 std::optional<int> parsed_value = StringUtil::FromChars<int>(str_value, 10);
149 if (!parsed_value.has_value())
150 return false;
151
152 *value = parsed_value.value();
153 return true;
154}
155
156bool INISettingsInterface::GetUIntValue(const char* section, const char* key, uint* value) const
157{

Callers 15

BindWidgetToIntSettingFunction · 0.45
loadCoverURLsMethod · 0.45
getIntValueMethod · 0.45
getEffectiveIntValueMethod · 0.45
getIntValueMethod · 0.45
saveSymbolSourcesMethod · 0.45

Calls 2

GetValueMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected