From 5721b503f47ba7b1db44a63c9478de71911a7e90 Mon Sep 17 00:00:00 2001 From: Denis <93516910+Bussun@users.noreply.github.com> Date: Sat, 28 Oct 2023 23:06:35 +0200 Subject: [PATCH] Fixed bug when reopening file My padding was bad (0x10 instead of 0x20 as required at the end of INF1) --- BMGEditor/FS/BMG.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMGEditor/FS/BMG.cs b/BMGEditor/FS/BMG.cs index 50b3ac7..fb9a54c 100644 --- a/BMGEditor/FS/BMG.cs +++ b/BMGEditor/FS/BMG.cs @@ -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;