refactor: type the IGameServices payload as a variant instead of void*

This commit is contained in:
MatthewBeshay committed 2026-04-09 15:24:12 +10:00
1 parent 8084ec7857
commit 52b4ccaea2
17 files changed
+141 -92

No files matched your search

@@ -115,9 +115,11 @@ void UIScene_DebugCreateSchematic::handlePress(F64 controlId, F64 childId) {
else if (m_data->endZ < 0 && m_data->endZ % 2 == 0)
m_data->endZ += 1;
std::unique_ptr<minecraft::XuiActionOwnedPayload> payload(m_data);
m_data = nullptr; // ownership transferred to the action
app.SetXuiServerAction(PlatformProfile.GetPrimaryPad(),
eXuiServerAction_ExportSchematic,
(void*)m_data);
std::move(payload));
navigateBack();
} break;