[Project64] Add CSettingTypeApplication::ResetAll

This commit is contained in:
zilmar 2016-09-29 21:35:16 +10:00
parent 21839b8ae6
commit a130434e56
2 changed files with 15 additions and 0 deletions

View File

@ -116,6 +116,20 @@ void CSettingTypeApplication::Flush()
}
}
void CSettingTypeApplication::ResetAll()
{
if (m_SettingsIniFile == NULL)
{
return;
}
CIniFile::SectionList sections;
m_SettingsIniFile->GetVectorOfSections(sections);
for (size_t i = 0; i < sections.size(); i++)
{
m_SettingsIniFile->DeleteSection(sections[i].c_str());
}
}
void CSettingTypeApplication::CleanUp()
{
if (m_SettingsIniFile)

View File

@ -50,6 +50,7 @@ public:
static void Initialize(const char * AppName);
static void CleanUp(void);
static void Flush(void);
static void ResetAll(void);
const char * GetKeyName(void) const { return m_KeyName.c_str(); }