pull/40/head
Ivan Dmitrievich Yartsev 12 months ago
parent 6e7fe49ed4
commit 3323cc6c33

@ -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]);

Loading…
Cancel
Save