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

@ -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}`");
}
}
}
}