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

Method AddToStringList

pcsx2/INISettingsInterface.cpp:337–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337bool INISettingsInterface::AddToStringList(const char* section, const char* key, const char* item)
338{
339 std::list<CSimpleIniA::Entry> entries;
340 if (m_ini.GetAllValues(section, key, entries) &&
341 std::find_if(entries.begin(), entries.end(),
342 [item](const CSimpleIniA::Entry& e) { return (std::strcmp(e.pItem, item) == 0); }) != entries.end())
343 {
344 return false;
345 }
346
347 m_dirty = true;
348 m_ini.SetValue(section, key, item, nullptr, false);
349 return true;
350}
351
352std::vector<std::pair<std::string, std::string>> INISettingsInterface::GetKeyValueList(const char* section) const
353{

Callers 6

setCheatEnabledMethod · 0.45
onEnabledStateChangedMethod · 0.45

Calls 4

GetAllValuesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected