Skip to content

Commit

Permalink
Revert "Fix Branching DisplayLists (#18)" (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
inspectredc authored Apr 27, 2024
1 parent 755dd4a commit 67feb47
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 67feb47

Please sign in to comment.