From e7b50b9c3a34fe4b373398c2329946f176a2df6c Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 3 Dec 2021 06:09:02 +0100 Subject: [PATCH] Forgot to set position back Forgot to set the position of stream back to the end of INF1 after writing section size, which resulted in an entirely corrupted file. --- BMGEditor/BMG.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BMGEditor/BMG.cs b/BMGEditor/BMG.cs index dbf028d..818a082 100644 --- a/BMGEditor/BMG.cs +++ b/BMGEditor/BMG.cs @@ -299,6 +299,8 @@ namespace BMGEditor Int64 INF1end = m_File.Stream.Position; m_File.Stream.Position = INF1start + 0x04; m_File.Writer.Write((UInt32)(INF1end - INF1start)); + m_File.Stream.Position = INF1end; + //DAT1