Skip to content

Commit

Permalink
refactor(native): simplify native library loading again
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Nov 12, 2023
1 parent 71bb932 commit 7cd2480
Show file tree
Hide file tree
Showing 8 changed files with 3,794 additions and 6,931 deletions.
3 changes: 1 addition & 2 deletions ZenKit/ModelHierarchy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.InteropServices;
using ZenKit.NativeLoader.NativeStructs;
using ZenKit.Util;

namespace ZenKit
Expand Down Expand Up @@ -35,7 +34,7 @@ public struct ModelHierarchyNode : IMaterializing<Materialized.ModelHierarchyNod
{
public short ParentIndex;
private IntPtr _name;
private ZkMat4x4 _transform;
private Native.Structs.ZkMat4x4 _transform;

public string Name =>
_name.MarshalAsString() ?? throw new Exception("Failed to load model hierarchy node name");
Expand Down
Loading

0 comments on commit 7cd2480

Please sign in to comment.