CommonHostInterface: Fully clear controller section before loading profile

This commit is contained in:
Albert Liu 2020-12-19 19:23:33 -08:00 • committed by Connor McLaughlin
commit 189656cbc4
8 changed files with 27 additions and 19 deletions

View file

@ -102,6 +102,13 @@ void INISettingsInterface::DeleteValue(const char* section, const char* key)
m_ini.Delete(section, key);
}
void INISettingsInterface::ClearSection(const char* section)
{
m_dirty = true;
m_ini.Delete(section, nullptr);
m_ini.SetValue(section, nullptr, nullptr);
}
std::vector<std::string> INISettingsInterface::GetStringList(const char* section, const char* key)
{
std::list<CSimpleIniA::Entry> entries;