mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 00:18:23 +00:00
Fix cellNetCtlNetStartDialogUnloadAsync
This commit is contained in:
parent
95f363c174
commit
6dd4003154
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user