mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Minor changes
* Fixed some forgotten `!` in cellFsGetFreeSize. * Fixed VSUM2SWS opcode. * Added cellNetCtl to the project. * Implemented cellNetCtlGetState.
This commit is contained in:
parent
bc77f27bb2
commit
8204deaae6
6 changed files with 24 additions and 6 deletions
|
|
@ -45,6 +45,15 @@ enum
|
|||
CELL_NET_CTL_ERROR_DHCP_LEASE_TIME = 0x80130504,
|
||||
};
|
||||
|
||||
// Network connection states
|
||||
enum
|
||||
{
|
||||
CELL_NET_CTL_STATE_Disconnected = 0,
|
||||
CELL_NET_CTL_STATE_Connecting = 1,
|
||||
CELL_NET_CTL_STATE_IPObtaining = 2,
|
||||
CELL_NET_CTL_STATE_IPObtained = 3,
|
||||
};
|
||||
|
||||
int cellNetCtlInit()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellNetCtl);
|
||||
|
|
@ -57,9 +66,14 @@ int cellNetCtlTerm()
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
int cellNetCtlGetState()
|
||||
int cellNetCtlGetState(mem32_t state)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellNetCtl);
|
||||
cellNetCtl.Log("cellNetCtlGetState(state_addr=0x%x)", state.GetAddr());
|
||||
|
||||
if (!state.IsGood())
|
||||
return CELL_NET_CTL_ERROR_INVALID_ADDR;
|
||||
|
||||
state = CELL_NET_CTL_STATE_Disconnected; // TODO: Allow other states
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue