Fixed bug when reopening file

My padding was bad (0x10 instead of 0x20 as required at the end of INF1)
This commit is contained in:
Denis
2023-10-28 23:06:35 +02:00
parent 542bf405fe
commit 5721b503f4

View File

@@ -296,7 +296,7 @@ namespace BMGEditor
m_File.Writer.Write((Byte)entry.messageAreaOpt);
m_File.Writer.Write((Byte)0xFF);
}
while (m_File.Stream.Position % 16 != 0x00)
while (m_File.Stream.Position % 32 != 0x00)
m_File.Writer.Write((Byte)0x00);
Int64 INF1end = m_File.Stream.Position;
m_File.Stream.Position = INF1start + 0x04;