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

Method GetUIntValue

pcsx2/INISettingsInterface.cpp:156–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156bool INISettingsInterface::GetUIntValue(const char* section, const char* key, uint* value) const
157{
158 const char* str_value = m_ini.GetValue(section, key);
159 if (!str_value)
160 return false;
161
162 std::optional<uint> parsed_value = StringUtil::FromChars<uint>(str_value, 10);
163 if (!parsed_value.has_value())
164 return false;
165
166 *value = parsed_value.value();
167 return true;
168}
169
170bool INISettingsInterface::GetFloatValue(const char* section, const char* key, float* value) const
171{

Callers 6

GetUIntSettingValueMethod · 0.45
CheckSettingsVersionMethod · 0.45
SetDefaultSettingsMethod · 0.45
GetConfigSubTypeMethod · 0.45
LoadMacroButtonConfigMethod · 0.45

Calls 2

GetValueMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected