Bug fixes, debug tools for binary chunks.
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace RobloxFiles.BinaryFormat.Chunks
|
||||
@ -55,5 +57,19 @@ namespace RobloxFiles.BinaryFormat.Chunks
|
||||
writer.Write(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteInfo(StringBuilder builder)
|
||||
{
|
||||
builder.AppendLine($"Format: {FORMAT}");
|
||||
builder.AppendLine($"NumStrings: {Lookup.Count}");
|
||||
|
||||
builder.AppendLine($"## Keys");
|
||||
|
||||
foreach (var pair in Lookup)
|
||||
{
|
||||
string key = pair.Key;
|
||||
builder.AppendLine($"- `{key}`");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user