From 3f2c34edd2c84a978c3ff6fa2a5d2a79aaae98fd Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 30 Jan 2024 20:53:23 +0100 Subject: [PATCH] sceNp: silence some errors --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 2 +- rpcs3/Emu/RSX/Overlays/Network/overlay_recvmessage_dialog.cpp | 3 +++ rpcs3/Emu/RSX/Overlays/Network/overlay_sendmessage_dialog.cpp | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index bcb1b88738..cdb1ef690e 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -1571,7 +1571,7 @@ error_code sceNpBasicRecvMessageCustom(ppu_thread& ppu, u16 mainType, u32 recvOp if (result != CELL_OK) { - return SCE_NP_BASIC_ERROR_CANCEL; + return not_an_error(SCE_NP_BASIC_ERROR_CANCEL); } const auto opt_msg = nph.get_message(chosen_msg_id); diff --git a/rpcs3/Emu/RSX/Overlays/Network/overlay_recvmessage_dialog.cpp b/rpcs3/Emu/RSX/Overlays/Network/overlay_recvmessage_dialog.cpp index 79f2dc9892..a79f42dc6b 100644 --- a/rpcs3/Emu/RSX/Overlays/Network/overlay_recvmessage_dialog.cpp +++ b/rpcs3/Emu/RSX/Overlays/Network/overlay_recvmessage_dialog.cpp @@ -262,6 +262,9 @@ namespace rsx case selection_code::no: accept_or_deny(SCE_NP_BASIC_MESSAGE_ACTION_DENY); break; + case selection_code::canceled: + rsx_log.notice("recvmessage dialog was canceled"); + break; default: rsx_log.error("recvmessage dialog exited with error: %d", return_code); break; diff --git a/rpcs3/Emu/RSX/Overlays/Network/overlay_sendmessage_dialog.cpp b/rpcs3/Emu/RSX/Overlays/Network/overlay_sendmessage_dialog.cpp index 01d6023da1..4ab7d8707c 100644 --- a/rpcs3/Emu/RSX/Overlays/Network/overlay_sendmessage_dialog.cpp +++ b/rpcs3/Emu/RSX/Overlays/Network/overlay_sendmessage_dialog.cpp @@ -242,6 +242,9 @@ namespace rsx } break; } + case selection_code::canceled: + rsx_log.notice("sendmessage dialog was canceled"); + break; default: rsx_log.error("sendmessage dialog exited with error: %d", return_code); break;