diff options
| author | inspectredc <78732756+inspectredc@users.noreply.github.com> | 2024-04-27 18:28:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 13:28:00 -0400 |
| commit | 67feb47d9d3281585a1981412e4f24451941e0b2 (patch) | |
| tree | 41f2f25f8b5404532a232dce35df634eafd3daba | |
| parent | 755dd4aa25c0dd40d0ecfc697534b13819016a1e (diff) | |
Revert "Fix Branching DisplayLists (#18)" (#20)
| -rw-r--r-- | OTRExporter/DisplayListExporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OTRExporter/DisplayListExporter.cpp b/OTRExporter/DisplayListExporter.cpp index b309fd0..fc06e3d 100644 --- a/OTRExporter/DisplayListExporter.cpp +++ b/OTRExporter/DisplayListExporter.cpp @@ -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); @@ -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 |
