From 3323cc6c33409183871cba9905aec19d35774bc8 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 25 Dec 2024 18:07:53 +0600 Subject: [PATCH] Ignore fix --- source/libublsettings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/libublsettings.c b/source/libublsettings.c index 15ea684..1263f7f 100644 --- a/source/libublsettings.c +++ b/source/libublsettings.c @@ -1436,7 +1436,7 @@ int yon_config_load_config(YON_CONFIG_TYPE config_type, ...){ if (config_type==YON_CONFIG_DEFAULT) yon_config_register_default(key,current_command,current_value); else - yon_config_register(key,current_command,current_value); + yon_config_register_default(key,current_command,current_value); if (config_type==YON_CONFIG_DEFAULT){ yon_config_set_ignore(key); yon_config_set_status(key,-2); @@ -1785,6 +1785,9 @@ void yon_config_register(char *key, char *config_load, void *data){ __yon__config__strings->flag1=1; __yon__config__strings->data_type=DICTIONARY_CHAR_TYPE; __yon__config__strings->load_command=config_load; + if (yon_dictionary_get(&__yon_config_ignored, key)){ + __yon_config_ignored = yon_dictionary_rip(__yon_config_ignored); + } int size=0; config_str section = yon_char_parse(config_load,&size," "); __yon__config__strings->section=yon_char_new(section[yon_char_parsed_check_exist(section,size,"get")+1]);