diff options
| author | Lywx <kiritodev01@gmail.com> | 2024-12-06 22:38:39 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 23:38:39 -0500 |
| commit | c872b1ff18b793a97385ccf1c864c3fc04051cc7 (patch) | |
| tree | 71a0f1e1148f4109f01fc820bb7ffd9a3d428cf2 | |
| parent | 467f36589b0d6fe6c7f9d248945650a459bce768 (diff) | |
Added ucode into displaylist (#28)
| -rw-r--r-- | OTRExporter/DisplayListExporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OTRExporter/DisplayListExporter.cpp b/OTRExporter/DisplayListExporter.cpp index bacc528..d7ee678 100644 --- a/OTRExporter/DisplayListExporter.cpp +++ b/OTRExporter/DisplayListExporter.cpp @@ -45,6 +45,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; @@ -52,6 +54,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); |
