summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLywx <kiritodev01@gmail.com>2025-01-11 16:07:25 -0600
committerGitHub <noreply@github.com>2025-01-11 17:07:25 -0500
commitd2fd3202b47e6d46367bd43a72b3c20b69935be6 (patch)
tree7215b2fdf70a7ba9ae342d1307f41e76dc8cfe8b
parent4271bc1bc6958f4fe61c881194fbbeda6cceb55d (diff)
Added support to latest LUS (#32)
-rw-r--r--OTRExporter/DisplayListExporter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/OTRExporter/DisplayListExporter.cpp b/OTRExporter/DisplayListExporter.cpp
index 7ea0641..dab35fa 100644
--- a/OTRExporter/DisplayListExporter.cpp
+++ b/OTRExporter/DisplayListExporter.cpp
@@ -46,6 +46,8 @@
{ (_SHIFTL(G_TEXRECT, 24, 8) | _SHIFTL(xh, 12, 12) | _SHIFTL(yh, 0, 12)),\
(_SHIFTL(tile, 24, 3) | _SHIFTL(xl, 12, 12) | _SHIFTL(yl, 0, 12)) }
+#define UCODE_F3DEX2 (int8_t) 4
+
void OTRExporter_DisplayList::Save(ZResource* res, const fs::path& outPath, BinaryWriter* writer)
{
ZDisplayList* dList = (ZDisplayList*)res;
@@ -53,6 +55,7 @@ void OTRExporter_DisplayList::Save(ZResource* res, const fs::path& outPath, Bina
//printf("Exporting DList %s\n", dList->GetName().c_str());
WriteHeader(res, outPath, writer, static_cast<uint32_t>(LUS::ResourceType::DisplayList));
+ writer->Write(UCODE_F3DEX2);
while (writer->GetBaseAddress() % 8 != 0)
writer->Write((uint8_t)0xFF);