Set informational chunkIndex attribute on XML export

* This is useful to be able to tie a particular chunk when replaying to its
  location in the XML, where event IDs are hard to come by.
This commit is contained in:
baldurk
2024-05-08 15:04:58 +01:00
parent b9806addb1
commit 0aa7cdda17
+1
View File
@@ -477,6 +477,7 @@ static RDResult Structured2XML(const rdcstr &filename, const RDCFile &file, uint
SDChunk *chunk = chunks[c];
xChunk.append_attribute("id") = chunk->metadata.chunkID;
xChunk.append_attribute("chunkIndex") = c;
xChunk.append_attribute("name") = chunk->name.c_str();
xChunk.append_attribute("length") = chunk->metadata.length;
if(chunk->metadata.threadID)