xact3::xwb: Log segment lengths for debugging

This commit is contained in:
Simon Bruder 2020-06-23 13:19:19 +02:00
parent 8f9df6f5bb
commit dbc42a4083
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -191,11 +191,11 @@ impl WaveBank<'_> {
.map(|x| x.get_from(data))
.collect();
debug!("Parsing info");
debug!("Parsing info (length {})", segments[0].len());
let info = exec_nom_parser(Info::parse, segments[0])?;
debug!("Parsing entries");
debug!("Parsing entries (length {})", segments[1].len());
let entries = exec_nom_parser(count(Entry::parse, info.entry_count as usize), segments[1])?;
debug!("Parsing entry names");
debug!("Parsing entry names (length {})", segments[3].len());
let entry_names =
exec_nom_parser(count(take_str64, info.entry_count as usize), segments[3])?;