|
|
|
@ -565,6 +565,14 @@ int yon_advanced_save(main_window *widgets){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cur_section->format==2){
|
|
|
|
|
|
|
|
format[0]="yes";
|
|
|
|
|
|
|
|
} else if (cur_section->format == 1){
|
|
|
|
|
|
|
|
format[0]="no";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
format[0]=NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
parts[0]=cur_section->partition;
|
|
|
|
parts[0]=cur_section->partition;
|
|
|
|
@ -585,6 +593,8 @@ int yon_advanced_save(main_window *widgets){
|
|
|
|
devices[1]=cur_section->device;
|
|
|
|
devices[1]=cur_section->device;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cur_section->format==2){
|
|
|
|
if (cur_section->size&&yon_size_long_convert_to_mod(cur_section->full_part_size,cur_section->size_letter)>cur_section->size){
|
|
|
|
if (cur_section->size&&yon_size_long_convert_to_mod(cur_section->full_part_size,cur_section->size_letter)>cur_section->size){
|
|
|
|
|
|
|
|
|
|
|
|
char *size_str = yon_char_from_long(cur_section->size);
|
|
|
|
char *size_str = yon_char_from_long(cur_section->size);
|
|
|
|
@ -603,26 +613,26 @@ int yon_advanced_save(main_window *widgets){
|
|
|
|
if (!yon_char_is_empty(cur_section->fs_label)){
|
|
|
|
if (!yon_char_is_empty(cur_section->fs_label)){
|
|
|
|
fs_label[0]=cur_section->fs_label;
|
|
|
|
fs_label[0]=cur_section->fs_label;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (cur_section->format==2){
|
|
|
|
|
|
|
|
format[0]="yes";
|
|
|
|
|
|
|
|
} else if (cur_section->format == 1){
|
|
|
|
|
|
|
|
format[0]="no";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
format[0]=NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(cur_section->encryption)){
|
|
|
|
|
|
|
|
char *encrypt_str = yon_char_unite(cur_section->encryption,":",cur_section->encryption_password,NULL);
|
|
|
|
|
|
|
|
encryption[0]=encrypt_str;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (sections_size>1){
|
|
|
|
if (sections_size>1){
|
|
|
|
cur_section = sections[0]->sys_section?sections[1]:sections[0];
|
|
|
|
cur_section = sections[0]->sys_section?sections[1]:sections[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cur_section->format==2){
|
|
|
|
|
|
|
|
format[1]="yes";
|
|
|
|
|
|
|
|
} else if (cur_section->format==1){
|
|
|
|
|
|
|
|
format[1]="no";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
format[1] = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
devices[1]=cur_section->device;
|
|
|
|
devices[1]=cur_section->device;
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
if (!yon_char_is_empty(cur_section->partition)){
|
|
|
|
parts[1]=cur_section->partition;
|
|
|
|
parts[1]=cur_section->partition;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
parts[1]="";
|
|
|
|
parts[1]="";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cur_section->format==2){
|
|
|
|
if (cur_section->size){
|
|
|
|
if (cur_section->size){
|
|
|
|
char *size_str = yon_char_from_long(cur_section->size);
|
|
|
|
char *size_str = yon_char_from_long(cur_section->size);
|
|
|
|
char *sz_str = yon_char_append_c(size_str,cur_section->size_letter);
|
|
|
|
char *sz_str = yon_char_append_c(size_str,cur_section->size_letter);
|
|
|
|
@ -637,18 +647,12 @@ int yon_advanced_save(main_window *widgets){
|
|
|
|
if (!yon_char_is_empty(cur_section->fs_label)){
|
|
|
|
if (!yon_char_is_empty(cur_section->fs_label)){
|
|
|
|
fs_label[1]=cur_section->fs_label;
|
|
|
|
fs_label[1]=cur_section->fs_label;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (cur_section->format==2){
|
|
|
|
|
|
|
|
format[1]="yes";
|
|
|
|
|
|
|
|
} else if (cur_section->format==1){
|
|
|
|
|
|
|
|
format[1]="no";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
format[1] = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(cur_section->encryption)){
|
|
|
|
if (!yon_char_is_empty(cur_section->encryption)){
|
|
|
|
char *encrypt_str = yon_char_unite(cur_section->encryption,":",cur_section->encryption_password,NULL);
|
|
|
|
char *encrypt_str = yon_char_unite(cur_section->encryption,":",cur_section->encryption_password,NULL);
|
|
|
|
encryption[1]=encrypt_str;
|
|
|
|
encryption[1]=encrypt_str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (devices[0]||devices[1]){
|
|
|
|
if (devices[0]||devices[1]){
|
|
|
|
char *devices_str = yon_char_parsed_to_string_full(devices,2,",");
|
|
|
|
char *devices_str = yon_char_parsed_to_string_full(devices,2,",");
|
|
|
|
|