mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 20:27:22 +01:00
fix more idiotic mod things
This commit is contained in:
parent
09b0383ad4
commit
74408bba4f
1 changed files with 12 additions and 10 deletions
|
|
@ -37,22 +37,24 @@ public sealed class XivDataAnalyzer
|
|||
Dictionary<string, List<ushort>> outputIndices = new();
|
||||
while (*(resHandles + i) != null)
|
||||
{
|
||||
var handle = *(resHandles + i);
|
||||
var curBones = handle->BoneCount;
|
||||
var skeletonName = handle->ResourceHandle.FileName.ToString();
|
||||
outputIndices[skeletonName] = new();
|
||||
for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++)
|
||||
try
|
||||
{
|
||||
try
|
||||
var handle = *(resHandles + i);
|
||||
var curBones = handle->BoneCount;
|
||||
var skeletonName = handle->ResourceHandle.FileName.ToString();
|
||||
outputIndices[skeletonName] = new();
|
||||
for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++)
|
||||
{
|
||||
|
||||
var boneName = handle->HavokSkeleton->Bones[boneIdx].Name.String;
|
||||
if (boneName == null) continue;
|
||||
outputIndices[skeletonName].Add(boneIdx);
|
||||
|
||||
}
|
||||
catch
|
||||
{
|
||||
_logger.LogTrace("Could not get bone for {skellyname}:{idx}", skeletonName, boneIdx);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
_logger.LogTrace("Could not get bone for {skellyname}:{idx}", skeletonName, boneIdx);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue