From d2fd3202b47e6d46367bd43a72b3c20b69935be6 Mon Sep 17 00:00:00 2001 From: Lywx Date: Sat, 11 Jan 2025 16:07:25 -0600 Subject: Added support to latest LUS (#32) --- OTRExporter/DisplayListExporter.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(LUS::ResourceType::DisplayList)); + writer->Write(UCODE_F3DEX2); while (writer->GetBaseAddress() % 8 != 0) writer->Write((uint8_t)0xFF); -- cgit v1.2.3