- 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:
parent
cac634567b
commit
3114a26bc8
4 changed files with 38 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue