- allow renaming of config sections and added migration code to rename the old autoload sections to the more flexible naming system that's planned.

This commit is contained in:
Christoph Oelckers 2015-04-06 11:21:28 +02:00
commit 3114a26bc8
4 changed files with 38 additions and 1 deletions

View file

@ -513,6 +513,22 @@ FConfigFile::FConfigSection *FConfigFile::FindSection (const char *name) const
return section;
}
//====================================================================
//
// FConfigFile :: RenameSection
//
//====================================================================
void FConfigFile::RenameSection (const char *oldname, const char *newname) const
{
FConfigSection *section = FindSection(oldname);
if (section != NULL)
{
section->SectionName = newname;
}
}
//====================================================================
//
// FConfigFile :: FindEntry