From 67feb47d9d3281585a1981412e4f24451941e0b2 Mon Sep 17 00:00:00 2001 From: inspectredc <78732756+inspectredc@users.noreply.github.com> Date: Sat, 27 Apr 2024 18:28:00 +0100 Subject: Revert "Fix Branching DisplayLists (#18)" (#20) --- OTRExporter/DisplayListExporter.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3