Bug fixes, debug tools for binary chunks.

This commit is contained in:
CloneTrooper1019
2020-09-10 00:08:12 -05:00
parent 1314be22bb
commit 8bcc5a9dfa
11 changed files with 204 additions and 80 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Text;
namespace RobloxFiles.BinaryFormat.Chunks
{
@ -31,5 +32,18 @@ namespace RobloxFiles.BinaryFormat.Chunks
writer.WriteString(pair.Value);
}
}
public void WriteInfo(StringBuilder builder)
{
builder.AppendLine($"- NumEntries: {Data.Count}");
foreach (var pair in Data)
{
string key = pair.Key,
value = pair.Value;
builder.AppendLine($" - {key}: {value}");
}
}
}
}