[Project64] Add CSettingTypeApplication::ResetAll
This commit is contained in:
parent
21839b8ae6
commit
a130434e56
|
@ -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)
|
||||
|
|
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue