MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / cellNetCtlNetStartDialogUnloadAsync

Function cellNetCtlNetStartDialogUnloadAsync

ps3fw/cellNetCtl.cpp:357–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357error_code cellNetCtlNetStartDialogUnloadAsync(
358 vm::ptr<CellNetCtlNetStartDialogResult> result)
359{
360 cellNetCtl.warning("cellNetCtlNetStartDialogUnloadAsync(result=*0x%x)",
361 result);
362
363 auto& nph = g_fxo->get<named_thread<np::np_handler>>();
364
365 if (!nph.is_netctl_init)
366 {
367 return CELL_NET_CTL_ERROR_NOT_INITIALIZED;
368 }
369
370 if (!result)
371 {
372 return CELL_NET_CTL_ERROR_INVALID_ADDR;
373 }
374
375 if (result->size != 8u)
376 {
377 return CELL_NET_CTL_ERROR_INVALID_SIZE;
378 }
379
380 result->result = nph.get_net_status() == CELL_NET_CTL_STATE_IPObtained ? 0 : CELL_NET_CTL_ERROR_DIALOG_CANCELED;
381
382 sysutil_send_system_cmd(CELL_SYSUTIL_NET_CTL_NETSTART_UNLOADED, 0);
383 return CELL_OK;
384}
385
386error_code cellNetCtlGetNatInfo(vm::ptr<CellNetCtlNatInfo> natInfo)
387{

Callers

nothing calls this directly

Calls 2

sysutil_send_system_cmdFunction · 0.85
get_net_statusMethod · 0.80

Tested by

no test coverage detected