Fixed some binary file save problems.

This commit is contained in:
CloneTrooper1019
2019-06-10 20:27:57 -05:00
parent 5b85043194
commit 41c84dc49c
4 changed files with 72 additions and 48 deletions

View File

@ -45,13 +45,15 @@ namespace RobloxFiles.BinaryFormat.Chunks
foreach (var pair in Lookup)
{
string key = pair.Key;
byte[] md5 = Convert.FromBase64String(key);
uint id = pair.Value;
string value = Strings[id];
writer.Write(md5);
writer.WriteString(value);
string value = Strings[pair.Value];
byte[] buffer = Convert.FromBase64String(value);
writer.Write(buffer.Length);
writer.Write(buffer);
}
return writer.FinishWritingChunk();