Bug fixes, debug tools for binary chunks.
This commit is contained in:
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user