summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-03-26 23:22:05 -0400
committerlouist103 <35883445+louist103@users.noreply.github.com>2025-03-29 13:50:21 -0400
commitf6832e8698b1dfd18983ca46eb74e54d5dff65f8 (patch)
treeffc5ece755af378a4d3bf269fa9ef7218c0a4c0b
parent33cdade2e9e5ff7d1ca3b233fba5d86a92395c4d (diff)
handle segment addresses for other files in limb dlists (#14)
-rw-r--r--OTRExporter/SkeletonLimbExporter.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/OTRExporter/SkeletonLimbExporter.cpp b/OTRExporter/SkeletonLimbExporter.cpp
index 9534d8f..0e8b19c 100644
--- a/OTRExporter/SkeletonLimbExporter.cpp
+++ b/OTRExporter/SkeletonLimbExporter.cpp
@@ -134,7 +134,9 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin
if (name.at(0) == '&')
name.erase(0, 1);
- writer->Write(OTRExporter_DisplayList::GetPathToRes(limb, name));
+ ZFile* assocFile = Globals::Instance->GetSegment(GETSEGNUM(limb->dListPtr), res->parent->workerID);
+
+ writer->Write(OTRExporter_DisplayList::GetPathToRes(assocFile->resources[0], name));
}
else
{
@@ -155,7 +157,9 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin
if (name.at(0) == '&')
name.erase(0, 1);
- writer->Write(OTRExporter_DisplayList::GetPathToRes(limb, name));
+ ZFile* assocFile = Globals::Instance->GetSegment(GETSEGNUM(limb->dList2Ptr), res->parent->workerID);
+
+ writer->Write(OTRExporter_DisplayList::GetPathToRes(assocFile->resources[0], name));
}
else
{
@@ -173,4 +177,4 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin
writer->Write(limb->childIndex);
writer->Write(limb->siblingIndex);
-} \ No newline at end of file
+}