Allow config properties to be deprecated
This allows us to show a warning to the user if the .conf file includes a property that is no longer supported, or a property that is completely unknown. Actual handling of the property can still be implemented (e.g. to use as a fallback for modern replacement), but doesn't need to be.
This commit is contained in:
parent
779131d396
commit
04d2e9f3f1
3 changed files with 44 additions and 17 deletions
|
@ -525,11 +525,11 @@ void CONFIG::Run(void) {
|
|||
WriteOut(MSG_Get("PROGRAM_CONFIG_HLP_PROPHLP"),
|
||||
p->propname.c_str(),
|
||||
sec->GetName(),
|
||||
p->Get_help(),propvalues.c_str(),
|
||||
p->GetHelp(), propvalues.c_str(),
|
||||
p->Get_Default_Value().ToString().c_str(),
|
||||
p->GetValue().ToString().c_str());
|
||||
// print 'changability'
|
||||
if (p->getChange()==Property::Changeable::OnlyAtStart) {
|
||||
if (p->GetChange() == Property::Changeable::OnlyAtStart) {
|
||||
WriteOut(MSG_Get("PROGRAM_CONFIG_HLP_NOCHANGE"));
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue