shorten relay connection failure OSD message

This commit is contained in:
Katharine Chui committed 2026-03-05 19:22:10 +01:00
1 parent 20424bc5bc
commit 1e8e929bd9
1 file changed
+4 -4
+4 -4
View File
@@ -583,7 +583,7 @@ static void *pdp_postoffice_recover(int idx) {
if (state != AEMU_POSTOFFICE_CLIENT_OK) {
ERROR_LOG(Log::sceNet, "%s: failed creating pdp socket on aemu postoffice library, %d", __func__, state);
auto n = GetI18NCategory(I18NCat::NETWORKING);
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server, check logs for more details"), 0.0f, "relay_connect_failed");
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server"), 0.0f, "relay_connect_failed");
}
INFO_LOG(Log::sceNet, "%s: pdp recovery for id %d: %p", __func__, idx + 1, internal->postofficeHandle);
@@ -1106,7 +1106,7 @@ static void *ptp_listen_postoffice_recover(int idx) {
if (state != AEMU_POSTOFFICE_CLIENT_OK) {
ERROR_LOG(Log::sceNet, "%s: failed recovering ptp listen socket, %d", __func__, state);
auto n = GetI18NCategory(I18NCat::NETWORKING);
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server, check logs for more details"), 0.0f, "relay_connect_failed");
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server"), 0.0f, "relay_connect_failed");
}
INFO_LOG(Log::sceNet, "%s: ptp listen recovery for id %d: %p", __func__, idx + 1, internal->postofficeHandle);
@@ -1128,7 +1128,7 @@ static int ptp_accept_postoffice(int idx, SceNetEtherAddr *saddr, uint16_t *spor
if (new_ptp_socket == NULL) {
if (state == AEMU_POSTOFFICE_CLIENT_SESSION_DEAD) {
auto n = GetI18NCategory(I18NCat::NETWORKING);
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server, check logs for more details"), 0.0f, "relay_connect_failed");
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server"), 0.0f, "relay_connect_failed");
ptp_listen_close(adhocSockets[idx]->postofficeHandle);
adhocSockets[idx]->postofficeHandle = NULL;
return SCE_NET_ADHOC_ERROR_WOULD_BLOCK;
@@ -1280,7 +1280,7 @@ static int ptp_connect_postoffice(int idx, const char *caller) {
internal->connectThreadResult = SCE_NET_ADHOC_ERROR_CONNECTION_REFUSED;
ERROR_LOG(Log::sceNet, "%s: failed connecting to ptp socket, %d", __func__, state);
auto n = GetI18NCategory(I18NCat::NETWORKING);
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server, check logs for more details"), 0.0f, "relay_connect_failed");
g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Failed connecting to relay server"), 0.0f, "relay_connect_failed");
internal->connectThreadDone = true;
return;
}