Further fixes.

This commit is contained in:
Ottermandias 2022-08-24 17:50:52 +02:00
parent 674dc03f46
commit e66ca7c580
6 changed files with 11 additions and 11 deletions

View file

@ -2,6 +2,7 @@ using System;
using System.IO;
using System.Reflection;
using System.Text;
using Lumina.Data;
using Lumina.Data.Parsing;
using Lumina.Extensions;
@ -87,7 +88,7 @@ public partial class MdlFile : IWritable
public MdlFile( byte[] data )
{
using var stream = new MemoryStream( data );
using var r = new BinaryReader( stream );
using var r = new LuminaBinaryReader( stream );
var header = LoadModelFileHeader( r );
LodCount = header.LodCount;
@ -197,7 +198,7 @@ public partial class MdlFile : IWritable
RemainingData = r.ReadBytes( ( int )( r.BaseStream.Length - r.BaseStream.Position ) );
}
private MdlStructs.ModelFileHeader LoadModelFileHeader( BinaryReader r )
private MdlStructs.ModelFileHeader LoadModelFileHeader( LuminaBinaryReader r )
{
var header = MdlStructs.ModelFileHeader.Read( r );
Version = header.Version;
@ -255,5 +256,4 @@ public partial class MdlFile : IWritable
public unsafe uint StackSize
=> ( uint )( VertexDeclarations.Length * NumVertices * sizeof( MdlStructs.VertexElement ) );
}