diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2024-01-05 09:36:27 -0600 |
|---|---|---|
| committer | louist103 <35883445+louist103@users.noreply.github.com> | 2025-03-29 13:50:21 -0400 |
| commit | 19d5c2db5106d8b361439450aabb221ed9f94fa6 (patch) | |
| tree | 7a863674078d81e919ca498ac1de204bf33d297d | |
| parent | cb5af1a8ebb8ca0ae9d11cdea39a1d8aaac83374 (diff) | |
Changes to build on mac
| -rw-r--r-- | OTRExporter/CutsceneExporter.cpp | 2 | ||||
| -rw-r--r-- | OTRExporter/DisplayListExporter.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OTRExporter/CutsceneExporter.cpp b/OTRExporter/CutsceneExporter.cpp index 0074bc1..d4e9345 100644 --- a/OTRExporter/CutsceneExporter.cpp +++ b/OTRExporter/CutsceneExporter.cpp @@ -489,7 +489,7 @@ void OTRExporter_Cutscene::SaveMM(ZCutscene* cs, BinaryWriter* writer) { // BENTODO: Can these stay consilidated? case CutsceneMM_CommandType::CS_CMD_CAMERA_SPLINE: { writer->Write((uint32_t)CutsceneMM_CommandType::CS_CMD_CAMERA_SPLINE); - writer->Write((uint32_t)cs->commands[i]->entries.size() * sizeof(uint32_t)); + writer->Write((uint32_t)(cs->commands[i]->entries.size() * sizeof(uint32_t))); for (const auto e : cs->commands[i]->entries) { auto* cmd = (CutsceneSubCommandEntry_Camera*)e; writer->Write(CMD_HH(cmd->base, cmd->startFrame)); diff --git a/OTRExporter/DisplayListExporter.cpp b/OTRExporter/DisplayListExporter.cpp index 21db5bb..889aca0 100644 --- a/OTRExporter/DisplayListExporter.cpp +++ b/OTRExporter/DisplayListExporter.cpp @@ -895,8 +895,8 @@ void OTRExporter_DisplayList::Save(ZResource* res, const fs::path& outPath, Bina if (lastOpCode != G_ENDDL) { Gfx value = { gsSPEndDisplayList() }; - writer->Write(value.words.w0); - writer->Write(value.words.w1); + writer->Write((uint32_t)value.words.w0); + writer->Write((uint32_t)value.words.w1); } auto dlEnd = std::chrono::steady_clock::now(); |
