Core/Misc: Some cleanups

This commit is contained in:
hondacrx
2018-03-05 12:13:45 -05:00
parent 3fc07b8b37
commit 7de76148b6
9 changed files with 58 additions and 122 deletions
+2 -2
View File
@@ -191,12 +191,12 @@ namespace Game.DataStorage
// Read header
M2Header header = m2file.ReadStruct<M2Header>();
var buffer = new BinaryReader(new MemoryStream(m2file.ToByteArray(), 8, (int)(m2file.BaseStream.Length - 8)));
// Get camera(s) - Main header, then dump them.
M2Camera cam = m2file.ReadStruct<M2Camera>(8 + header.ofsCameras);
readCamera(cam, (uint)m2file.BaseStream.Length - 8, buffer, cameraEntry);
m2file.BaseStream.Position = 8;
readCamera(cam, (uint)m2file.BaseStream.Length - 8, m2file, cameraEntry);
}
}
catch (EndOfStreamException)