Giving sort weight 2 as default to El Torito boot images.

This commit is contained in:
2013-09-07 21:37:27 +02:00
parent 7aa2582129
commit b95e1bb85c
3 changed files with 22 additions and 3 deletions

View File

@ -1048,6 +1048,7 @@ void iso_node_set_sort_weight(IsoNode *node, int w)
}
} else if (node->type == LIBISO_FILE) {
((IsoFile*)node)->sort_weight = w;
((IsoFile*)node)->explicit_weight = 1;
}
}
@ -1430,6 +1431,8 @@ int iso_node_new_file(char *name, IsoStream *stream, IsoFile **file)
new->node.type = LIBISO_FILE;
new->node.name = name;
new->node.mode = S_IFREG;
new->from_old_session = 0;
new->explicit_weight = 0;
new->sort_weight = 0;
new->stream = stream;