Fix cellNetCtlNetStartDialogUnloadAsync

This commit is contained in:
Eladash 2019-12-20 08:45:21 +02:00 committed by Megamouse
parent 95f363c174
commit 6dd4003154

View File

@ -280,14 +280,17 @@ error_code cellNetCtlNetStartDialogUnloadAsync(vm::ptr<CellNetCtlNetStartDialogR
if (result->size != 8)
{
result->result = CELL_NET_CTL_ERROR_INVALID_SIZE;
return CELL_NET_CTL_ERROR_INVALID_SIZE;
}
if (g_cfg.net.net_status == CELL_NET_CTL_STATE_Disconnected)
{
result->result = CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
return CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
}
else
{
// Hack
result->result = CELL_NET_CTL_ERROR_DIALOG_CANCELED;
}
sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0);