mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Show the socket error code when failed to connect to adhoc server
This commit is contained in:
parent
e3228ca1b5
commit
e508885cc4
1 changed files with 1 additions and 1 deletions
|
@ -2199,7 +2199,7 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
|
|||
}
|
||||
if (IsSocketReady(metasocket, false, true) <= 0) {
|
||||
ERROR_LOG(SCENET, "Socket error (%i) when connecting to AdhocServer [%s/%s:%u]", errorcode, g_Config.proAdhocServer.c_str(), ip2str(g_adhocServerIP.in.sin_addr).c_str(), ntohs(g_adhocServerIP.in.sin_port));
|
||||
host->NotifyUserMessage(n->T("Failed to connect to Adhoc Server"), 1.0f, 0x0000ff);
|
||||
host->NotifyUserMessage(std::string(n->T("Failed to connect to Adhoc Server")) + " (" + std::string(n->T("Error")) + ": " + std::to_string(errorcode) + ")", 1.0f, 0x0000ff);
|
||||
return iResult;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue