Skip to content

Commit

Permalink
Fix Branching DisplayLists (louist103#18)
Browse files Browse the repository at this point in the history
Co-authored by: Nicholas Estelami <[email protected]>
  • Loading branch information
inspectredc authored Apr 26, 2024
1 parent 741fb6b commit 6182c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OTRExporter/DisplayListExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void OTRExporter_DisplayList::Save(ZResource* res, const fs::path& outPath, Bina
uint32_t z = (data & 0x00000000FFFFFFFF) >> 0;
uint32_t h = (data & 0xFFFFFFFF);

auto data2 = dList->instructions[dataIdx - 1];
auto data2 = dList->instructions[dataIdx + 1];
uint32_t dListPtr = GETSEGOFFSET(data2);

Declaration* dListDecl = dList->parent->GetDeclaration(dListPtr);
Expand Down Expand Up @@ -445,7 +445,7 @@ void OTRExporter_DisplayList::Save(ZResource* res, const fs::path& outPath, Bina

if ((int)opF3D == G_BRANCH_Z)
{
auto data2 = dList->instructions[dataIdx - 1];
auto data2 = dList->instructions[dataIdx + 1];
dListPtr = GETSEGOFFSET(data2);
}
else
Expand Down

0 comments on commit 6182c0a

Please sign in to comment.