fix more idiotic mod things

This commit is contained in:
rootdarkarchon
2024-03-29 21:48:44 +01:00
parent 09b0383ad4
commit 74408bba4f

View File

@@ -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++;
} }