mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 23:10:10 +01:00
Show layers/segments in description
This commit is contained in:
parent
29bed4b1e0
commit
37df2cb18c
@ -2315,11 +2315,18 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
|||||||
snprintf(temp,TEMPSIZE,
|
snprintf(temp,TEMPSIZE,
|
||||||
"\nlayout: ");
|
"\nlayout: ");
|
||||||
concatn(length,desc,temp);
|
concatn(length,desc,temp);
|
||||||
switch (vgmstream->layout_type) {
|
|
||||||
default:
|
|
||||||
description = get_vgmstream_layout_description(vgmstream->layout_type);
|
description = get_vgmstream_layout_description(vgmstream->layout_type);
|
||||||
if (!description)
|
if (!description)
|
||||||
description = "INCONCEIVABLE";
|
description = "INCONCEIVABLE";
|
||||||
|
switch (vgmstream->layout_type) {
|
||||||
|
case layout_layered:
|
||||||
|
snprintf(temp,TEMPSIZE,"%s (%i layers)",description, ((layered_layout_data*)vgmstream->layout_data)->layer_count);
|
||||||
|
break;
|
||||||
|
case layout_segmented:
|
||||||
|
snprintf(temp,TEMPSIZE,"%s (%i segments)",description, ((segmented_layout_data*)vgmstream->layout_data)->segment_count);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
snprintf(temp,TEMPSIZE,"%s",description);
|
snprintf(temp,TEMPSIZE,"%s",description);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user