@ -875,8 +883,6 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
for_dictionaries(dict,sections){
command=yon_char_unite(ubconfig_load_command," default get ",dict->key,"",yon_dictionary_get_data(dict,char*),NULL);
FILE*output=popen(command,"r");
char**output_strings=NULL;
output_strings=malloc(sizeof(char*));
inti=0;
charstr[4096];
memset(str,0,4096);
@ -894,12 +900,12 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
__yon__config__strings->section=dict->key;
}
}
free(command);
fclose(output);
}
for_dictionaries(dict,sections){
command=yon_char_unite(ubconfig_load_command,config_type==YON_CONFIG_GLOBAL?" global get ":" system get ",dict->key,"",yon_dictionary_get_data(dict,char*),NULL);
FILE*output=popen(command,"r");
char**output_strings=NULL;
output_strings=malloc(sizeof(char*));
inti=0;
charstr[4096];
memset(str,0,4096);
@ -912,11 +918,15 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
elseyon_dictionary_add_or_create_if_exists_with_data(sections_add,((yon_config_parameter*)dct)->section,yon_char_unite(ubconfig_save_command,path?yon_char_append(" --target ",path):""," set ",((yon_config_parameter*)dct)->section,"",dct->key,"=\"",yon_dictionary_get_data(dct,char*),"\"",NULL));