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

This commit is contained in:
MatthewBeshay
2026-04-08 19:40:20 +10:00
parent 8084ec7857
commit 52b4ccaea2
17 changed files with 141 additions and 92 deletions

View File

@@ -34,7 +34,7 @@ void PauseScreen::init() {
if (g_NetworkManager.IsLocalGame() &&
g_NetworkManager.GetPlayerCount() == 1)
gameServices().setXuiServerAction(PlatformInput.GetPrimaryPad(),
eXuiServerAction_PauseServer, (void*)true);
eXuiServerAction_PauseServer, true);
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 5 + yo,
I18n::get("menu.returnToMenu")));
if (!g_NetworkManager.IsHost()) {
@@ -92,7 +92,7 @@ void PauseScreen::buttonClicked(Button* button) {
}
if (button->id == 4) {
gameServices().setXuiServerAction(PlatformInput.GetPrimaryPad(),
eXuiServerAction_PauseServer, (void*)false);
eXuiServerAction_PauseServer, false);
minecraft->setScreen(nullptr);
// minecraft->grabMouse(); // 4J - removed
}