|
|
|
@ -261,8 +261,10 @@ char *yon_config_replace_parameter(char *command, char *parameter, int place){
|
|
|
|
if (!yon_char_is_empty(command));
|
|
|
|
if (!yon_char_is_empty(command));
|
|
|
|
int size=0;
|
|
|
|
int size=0;
|
|
|
|
config_str parsed = yon_char_parse(command,&size," ");
|
|
|
|
config_str parsed = yon_char_parse(command,&size," ");
|
|
|
|
if (place<size){
|
|
|
|
int firstparameter = yon_config_command_get_section_pos(parsed,size)+1;
|
|
|
|
parsed[place]=yon_char_new(parameter);
|
|
|
|
if (firstparameter+place<size){
|
|
|
|
|
|
|
|
free(parsed[firstparameter+place]);
|
|
|
|
|
|
|
|
parsed[firstparameter+place]=yon_char_new(parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *final = yon_char_parsed_to_string(parsed,size," ");
|
|
|
|
char *final = yon_char_parsed_to_string(parsed,size," ");
|
|
|
|
yon_char_parsed_free(parsed,size);
|
|
|
|
yon_char_parsed_free(parsed,size);
|
|
|
|
@ -337,7 +339,7 @@ int yon_config_load_config(YON_CONFIG_TYPE config_type, ...){
|
|
|
|
char *key = yon_char_divide_search(current_value,"=",-1);
|
|
|
|
char *key = yon_char_divide_search(current_value,"=",-1);
|
|
|
|
yon_char_remove_brackets(current_value);
|
|
|
|
yon_char_remove_brackets(current_value);
|
|
|
|
char *current_command = yon_char_new(command[i]);
|
|
|
|
char *current_command = yon_char_new(command[i]);
|
|
|
|
current_command = yon_config_replace_parameter(current_command,key,5);
|
|
|
|
current_command = yon_config_replace_parameter(current_command,key,0);
|
|
|
|
char *cur_data = config(key);
|
|
|
|
char *cur_data = config(key);
|
|
|
|
int cur_ignore = yon_config_check_ignore(key);
|
|
|
|
int cur_ignore = yon_config_check_ignore(key);
|
|
|
|
if ((cur_ignore&¤t_value)||(!cur_ignore))
|
|
|
|
if ((cur_ignore&¤t_value)||(!cur_ignore))
|
|
|
|
|