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

Method GetStringList

pcsx2/INISettingsInterface.cpp:309–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309std::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
322void INISettingsInterface::SetStringList(const char* section, const char* key, const std::vector<std::string>& items)
323{

Callers 13

reloadBindingMethod · 0.45
reloadListMethod · 0.45
reloadListMethod · 0.45
GetStringListSettingMethod · 0.45
HasAnyBindingsForPadMethod · 0.45
AddBindingsMethod · 0.45
AddHotkeyBindingsMethod · 0.45
AddPadBindingsMethod · 0.45
AddUSBBindingsMethod · 0.45
SetMacroButtonStateMethod · 0.45

Calls 3

GetAllValuesMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected