|
|
|
@ -174,6 +174,7 @@ void _yon_saving_threaded(char *final_command){
|
|
|
|
FILE *file = popen(final_command,"r");
|
|
|
|
FILE *file = popen(final_command,"r");
|
|
|
|
int file_save;
|
|
|
|
int file_save;
|
|
|
|
config_str file_return = yon_config_load_file(file,&file_save);
|
|
|
|
config_str file_return = yon_config_load_file(file,&file_save);
|
|
|
|
|
|
|
|
fclose(file);
|
|
|
|
file_return = yon_char_parsed_append(file_return,&file_save,final_command);
|
|
|
|
file_return = yon_char_parsed_append(file_return,&file_save,final_command);
|
|
|
|
if (save_success_function)
|
|
|
|
if (save_success_function)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -301,7 +302,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
if (!strstr(file,".ini")) file = yon_char_append(file,".ini");
|
|
|
|
if (!strstr(file,".ini")) file = yon_char_append(file,".ini");
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
char *command_creation = ubconfig_file_create(file);
|
|
|
|
char *command_creation = ubconfig_file_create(file);
|
|
|
|
system(command_creation);
|
|
|
|
int a = system(command_creation);
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|