From 9a47c368b927d1ba11b413a614e65ab8a76cdf0f Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 18 Nov 2023 14:58:01 -0500 Subject: [PATCH] BFLYT : Fix value not read/written in TXT1 --- File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs b/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs index 406a8bc1..d3831a05 100644 --- a/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs +++ b/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs @@ -220,6 +220,7 @@ namespace LayoutBXLYT.Cafe public string FontName { get; set; } private byte _flags; + private byte Unknown3; private float Unknown1 { get; set; } private float Unknown2 { get; set; } @@ -261,7 +262,7 @@ namespace LayoutBXLYT.Cafe TextAlignment = reader.ReadByte(); LineAlignment = (LineAlign)reader.ReadByte(); _flags = reader.ReadByte(); - reader.Seek(1); //padding + Unknown3 = reader.ReadByte(); ItalicTilt = reader.ReadSingle(); uint textOffset = reader.ReadUInt32(); FontTopColor = STColor8.FromBytes(reader.ReadBytes(4)); @@ -329,7 +330,7 @@ namespace LayoutBXLYT.Cafe writer.Write(TextAlignment); writer.Write(LineAlignment, false); writer.Write(_flags); - writer.Seek(1); + writer.Write(Unknown3); writer.Write(ItalicTilt); long _ofsTextPos = writer.Position; writer.Write(0); //text offset