mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 12:24:15 +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
|
|
@ -36,6 +36,8 @@ public sealed class XivDataAnalyzer
|
||||||
int i = 0;
|
int i = 0;
|
||||||
Dictionary<string, List<ushort>> outputIndices = new();
|
Dictionary<string, List<ushort>> outputIndices = new();
|
||||||
while (*(resHandles + i) != null)
|
while (*(resHandles + i) != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var handle = *(resHandles + i);
|
var handle = *(resHandles + i);
|
||||||
var curBones = handle->BoneCount;
|
var curBones = handle->BoneCount;
|
||||||
|
|
@ -43,17 +45,17 @@ public sealed class XivDataAnalyzer
|
||||||
outputIndices[skeletonName] = new();
|
outputIndices[skeletonName] = new();
|
||||||
for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++)
|
for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++)
|
||||||
{
|
{
|
||||||
try
|
|
||||||
{
|
|
||||||
var boneName = handle->HavokSkeleton->Bones[boneIdx].Name.String;
|
var boneName = handle->HavokSkeleton->Bones[boneIdx].Name.String;
|
||||||
if (boneName == null) continue;
|
if (boneName == null) continue;
|
||||||
outputIndices[skeletonName].Add(boneIdx);
|
outputIndices[skeletonName].Add(boneIdx);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
_logger.LogTrace("Could not get bone for {skellyname}:{idx}", skeletonName, boneIdx);
|
_logger.LogTrace("Could not get bone for {skellyname}:{idx}", skeletonName, boneIdx);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue