mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Fix cellNetCtlNetStartDialogUnloadAsync
This commit is contained in:
parent
95f363c174
commit
6dd4003154
1 changed files with 5 additions and 2 deletions
|
@ -280,14 +280,17 @@ error_code cellNetCtlNetStartDialogUnloadAsync(vm::ptr<CellNetCtlNetStartDialogR
|
||||||
|
|
||||||
if (result->size != 8)
|
if (result->size != 8)
|
||||||
{
|
{
|
||||||
result->result = CELL_NET_CTL_ERROR_INVALID_SIZE;
|
|
||||||
return CELL_NET_CTL_ERROR_INVALID_SIZE;
|
return CELL_NET_CTL_ERROR_INVALID_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_cfg.net.net_status == CELL_NET_CTL_STATE_Disconnected)
|
if (g_cfg.net.net_status == CELL_NET_CTL_STATE_Disconnected)
|
||||||
{
|
{
|
||||||
result->result = CELL_NET_CTL_ERROR_NET_NOT_CONNECTED;
|
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);
|
sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue