refactor: type the IGameServices payload as a variant instead of void*
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user