| 455 | } |
| 456 | |
| 457 | void nputils::NetDialogCheck(void *data) |
| 458 | { |
| 459 | thread::SyncCall::Function func = reinterpret_cast<thread::SyncCall::Function>(data); |
| 460 | SceNetCheckDialogResult result; |
| 461 | |
| 462 | if (s_preInitRet < 0) |
| 463 | { |
| 464 | /*sceSslTerm(); |
| 465 | sceHttpTerm(); |
| 466 | sceSysmoduleUnloadModule(SCE_SYSMODULE_SSL); |
| 467 | sceSysmoduleUnloadModule(SCE_SYSMODULE_HTTP);*/ |
| 468 | func(&s_preInitRet); |
| 469 | common::MainThreadCallList::Unregister(NetDialogCheck, data); |
| 470 | } |
| 471 | |
| 472 | int32_t ret = sceNetCheckDialogGetStatus(); |
| 473 | if (ret == SCE_COMMON_DIALOG_STATUS_FINISHED) |
| 474 | { |
| 475 | sceNetCheckDialogGetResult(&result); |
| 476 | if (result.result != SCE_OK) |
| 477 | { |
| 478 | s_preInitRet = result.result; |
| 479 | if (s_preInitRet == 1) |
| 480 | { |
| 481 | s_preInitRet = SCE_NETCHECK_DIALOG_ERROR_SIGN_OUT; |
| 482 | } |
| 483 | } |
| 484 | sceNetCheckDialogTerm(); |
| 485 | sceSslTerm(); |
| 486 | sceHttpTerm(); |
| 487 | sceSysmoduleUnloadModule(SCE_SYSMODULE_SSL); |
| 488 | sceSysmoduleUnloadModule(SCE_SYSMODULE_HTTP); |
| 489 | func(&s_preInitRet); |
| 490 | common::MainThreadCallList::Unregister(NetDialogCheck, data); |
| 491 | } |
| 492 | else if (ret < 0) |
| 493 | { |
| 494 | s_preInitRet = ret; |
| 495 | } |
| 496 | } |
nothing calls this directly
no outgoing calls
no test coverage detected