Add setting flag to enable bool -> int config file load conversion

This commit is contained in:
Jonathan G Rennison
2022-11-17 23:23:29 +00:00
parent 6cf62af092
commit cf6f509859
2 changed files with 5 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ enum SettingFlag : uint32 {
SF_GUI_VELOCITY = 1 << 18, ///< setting value is a velocity
SF_GUI_ADVISE_DEFAULT = 1 << 19, ///< Advise the user to leave this setting at its default value
SF_ENUM_PRE_CB_VALIDATE = 1 << 20, ///< Call the pre_check callback for enum incoming value validation
SF_CONVERT_BOOL_TO_INT = 1 << 21, ///< Accept a boolean value when loading an int-type setting from the config file
};
DECLARE_ENUM_AS_BIT_SET(SettingFlag)