Skip to content

Commit

Permalink
handle segment addresses for other files in limb dlists (HarbourMaste…
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez authored Mar 27, 2024
1 parent 5c48f34 commit 2571340
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions OTRExporter/SkeletonLimbExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -173,4 +177,4 @@ void OTRExporter_SkeletonLimb::Save(ZResource* res, const fs::path& outPath, Bin

writer->Write(limb->childIndex);
writer->Write(limb->siblingIndex);
}
}

0 comments on commit 2571340

Please sign in to comment.