| 307 | } |
| 308 | |
| 309 | std::vector<std::string> INISettingsInterface::GetStringList(const char* section, const char* key) const |
| 310 | { |
| 311 | std::list<CSimpleIniA::Entry> entries; |
| 312 | if (!m_ini.GetAllValues(section, key, entries)) |
| 313 | return {}; |
| 314 | |
| 315 | std::vector<std::string> ret; |
| 316 | ret.reserve(entries.size()); |
| 317 | for (const CSimpleIniA::Entry& entry : entries) |
| 318 | ret.emplace_back(entry.pItem); |
| 319 | return ret; |
| 320 | } |
| 321 | |
| 322 | void INISettingsInterface::SetStringList(const char* section, const char* key, const std::vector<std::string>& items) |
| 323 | { |
no test coverage detected