Merge lost file.

This commit is contained in:
xiao-77 2024-12-13 15:52:38 +08:00
parent a6e1af6b42
commit c8cbcc4a3b
1 changed files with 3 additions and 3 deletions

View File

@ -747,17 +747,17 @@ int32_t cfgAddBool(SConfig *pCfg, const char *name, bool defaultVal, int8_t scop
}
int32_t cfgAddInt32Ex(SConfig *pCfg, const char *name, int32_t defaultVal, int64_t minval, int64_t maxval, int8_t scope,
int8_t dynScope) {
int8_t dynScope, int8_t category) {
SConfigItem item = {.dtype = CFG_DTYPE_INT32,
.i32 = defaultVal,
.imin = minval,
.imax = maxval,
.scope = scope,
.dynScope = dynScope};
.dynScope = dynScope,
.category = category};
return cfgAddItem(pCfg, &item, name);
}
int32_t cfgAddInt32(SConfig *pCfg, const char *name, int32_t defaultVal, int64_t minval, int64_t maxval, int8_t scope,
int8_t dynScope, int8_t category) {
if (defaultVal < minval || defaultVal > maxval) {