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:
@@ -296,7 +296,7 @@ namespace BMGEditor
|
|||||||
m_File.Writer.Write((Byte)entry.messageAreaOpt);
|
m_File.Writer.Write((Byte)entry.messageAreaOpt);
|
||||||
m_File.Writer.Write((Byte)0xFF);
|
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);
|
m_File.Writer.Write((Byte)0x00);
|
||||||
Int64 INF1end = m_File.Stream.Position;
|
Int64 INF1end = m_File.Stream.Position;
|
||||||
m_File.Stream.Position = INF1start + 0x04;
|
m_File.Stream.Position = INF1start + 0x04;
|
||||||
|
|||||||
Reference in New Issue
Block a user