| 335 | } |
| 336 | |
| 337 | bool 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 | |
| 352 | std::vector<std::pair<std::string, std::string>> INISettingsInterface::GetKeyValueList(const char* section) const |
| 353 | { |
no test coverage detected