Configuration path automatically adds .ini if none were specified

pull/396/head
parent c41d059c51
commit 03645c8106

@ -21,6 +21,13 @@ int yon_configuration_path_check(const char *path){
} else {
full_path = yon_char_new(path);
}
{
if (!strstr(full_path,".")){
char *temp = yon_char_append(full_path,".ini");
free(full_path);
full_path = temp;
}
}
if (access(full_path,F_OK)){
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
data->action_text = homedir_create?CREATE_CONFIG_DIALOG_LABEL_HOMEDIR:CREATE_CONFIG_DIALOG_LABEL;

Loading…
Cancel
Save