New -toc lines "ISO offers :" and "ISO loaded :"

This commit is contained in:
2020-12-07 19:42:46 +01:00
parent b3adff1daa
commit 3542e8af97
4 changed files with 30 additions and 1 deletions

View File

@ -692,6 +692,10 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
}
Xorriso_process_msg_queues(xorriso,0);
isoburn_ropt_get_size_what(ropts, &size, &has_what);
xorriso->isofs_has_what= has_what;
isoburn_ropt_get_tree_loaded(ropts, &(xorriso->tree_loaded),
&(xorriso->rr_loaded));
if(has_what & isoburn_ropt_has_el_torito) {
if(xorriso->boot_image_bin_path[0])
boot_fate= "replaced by new boot image";
@ -1279,6 +1283,20 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
if(!(flag & 2))
Xorriso_show_boot_info(xorriso, 1 | (flag & 8) | ((flag & 1) << 1));
if(!(flag & 3)) {
sprintf(respt, "ISO offers :%s%s%s%s\n",
xorriso->isofs_has_what & 1 ? " Rock_Ridge" : "",
xorriso->isofs_has_what & 2 ? " Joliet" : "",
xorriso->isofs_has_what & 4 ? " ISO_9660_1999" : "",
xorriso->isofs_has_what & 7 ? "" : " Only_ECMA_119");
Xorriso_toc_line(xorriso, flag & 8);
sprintf(respt, "ISO loaded : %s\n",
xorriso->tree_loaded == 1 ? "Joliet" :
xorriso->tree_loaded == 2 ? "ISO_9660_1999" :
xorriso->rr_loaded > 0 ? "Rock_Ridge" : "Only_ECMA_119");
Xorriso_toc_line(xorriso, flag & 8);
}
disc= isoburn_toc_drive_get_disc(drive);
if(flag & 4)
sprintf(respt, "TOC layout : %3s , %9s , %10s\n",