mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Further fixes.
This commit is contained in:
parent
674dc03f46
commit
e66ca7c580
6 changed files with 11 additions and 11 deletions
|
|
@ -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 ) );
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue