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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user