|
|
|
@ -198,36 +198,6 @@ config_str yon_loaded_config_convert_to_save_command(struct loaded_config *targe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return commands;
|
|
|
|
return commands;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// dictionary *sections = NULL;
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// struct loaded_config *current;
|
|
|
|
|
|
|
|
// for_dictionaries(current,target){
|
|
|
|
|
|
|
|
// dictionary *cur_section=NULL;
|
|
|
|
|
|
|
|
// if (sections&&(cur_section=yon_dictionary_get(§ions,current->section))){
|
|
|
|
|
|
|
|
// if (yon_config_get_status(current->key)==-1){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// char *temp = yon_char_unite((char*)cur_section->data," ", current->key,"=\'",(char*)current->data,"\'",NULL);
|
|
|
|
|
|
|
|
// free(current->data);
|
|
|
|
|
|
|
|
// cur_section->data = temp;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// char *parameters = yon_char_unite(current->key,"=\'",(char*)current->data,"\'",NULL);
|
|
|
|
|
|
|
|
// yon_dictionary_add_or_create_if_exists_with_data(sections,current->section,parameters);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// config_str commands = NULL;
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// dictionary *current;
|
|
|
|
|
|
|
|
// for_dictionaries(current,sections){
|
|
|
|
|
|
|
|
// char *dull_command = ubconfig_set_command_full(path,current->key,(char*)current->data);
|
|
|
|
|
|
|
|
// char *command = yon_config_parameter_prepare_command(dull_command,NULL,current->key,NULL);
|
|
|
|
|
|
|
|
// yon_char_parsed_add_or_create_if_exists(commands,size,command);
|
|
|
|
|
|
|
|
// free(command);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int yon_config_parameter_prepare_elements(config_str target, int *size){
|
|
|
|
int yon_config_parameter_prepare_elements(config_str target, int *size){
|
|
|
|
@ -432,7 +402,10 @@ void yon_save_window_loaded_config_init(template_saving_window *window, struct l
|
|
|
|
struct loaded_config *current = NULL;
|
|
|
|
struct loaded_config *current = NULL;
|
|
|
|
for_dictionaries(current,current_loaded){
|
|
|
|
for_dictionaries(current,current_loaded){
|
|
|
|
if (!yon_config_check_ignore(current->key)){
|
|
|
|
if (!yon_config_check_ignore(current->key)){
|
|
|
|
dictionary *dict = yon_dictionary_get((dictionary**)&config_compare,current->key); // get old parameter value
|
|
|
|
dictionary *dict = NULL;
|
|
|
|
|
|
|
|
if (!yon_config_compare_ignore_get(current->key)){
|
|
|
|
|
|
|
|
dict = yon_dictionary_get((dictionary**)&config_compare,current->key); // get old parameter value
|
|
|
|
|
|
|
|
}
|
|
|
|
gboolean status=0;
|
|
|
|
gboolean status=0;
|
|
|
|
status = yon_config_get_status(current->key);
|
|
|
|
status = yon_config_get_status(current->key);
|
|
|
|
if (dict&&!yon_char_is_empty((char*)dict->data)&&status!=-2){
|
|
|
|
if (dict&&!yon_char_is_empty((char*)dict->data)&&status!=-2){
|
|
|
|
|