From 3e0cfc651d9e2363248dcc013fc15ed71328ec9a Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 29 Jan 2026 05:37:51 +0100 Subject: [PATCH] Fix sceNpBasicLimited_0xEB42E2E6 --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 1 + rpcs3/Emu/NP/np_handler.cpp | 4 +--- rpcs3/Emu/NP/np_helpers.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index ee9c308265..2a2075f0ca 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -1173,6 +1173,7 @@ error_code _sceNpBasicSendMessage(vm::cptr to, vm::cptr data, u32 { struct sceNpBasicSendMessage_time_slots { + sceNpBasicSendMessage_time_slots() = default; sceNpBasicSendMessage_time_slots(sceNpBasicSendMessage_time_slots&&) = delete; std::array data{}; }; diff --git a/rpcs3/Emu/NP/np_handler.cpp b/rpcs3/Emu/NP/np_handler.cpp index 9dc02f983c..bc65f545b3 100644 --- a/rpcs3/Emu/NP/np_handler.cpp +++ b/rpcs3/Emu/NP/np_handler.cpp @@ -1085,9 +1085,7 @@ namespace np void np_handler::send_message(const message_data& msg_data, const std::set& npids) { - const std::string npids_string = fmt::format("\"%s\"", fmt::merge(npids, "\",\"")); - - rpcn_log.notice("Sending message to %s:", npids_string); + rpcn_log.notice("Sending message to \"%s\":", fmt::merge(npids, "\",\"")); msg_data.print(); get_rpcn()->send_message(msg_data, npids); diff --git a/rpcs3/Emu/NP/np_helpers.cpp b/rpcs3/Emu/NP/np_helpers.cpp index 839b33b614..79f61ca627 100644 --- a/rpcs3/Emu/NP/np_helpers.cpp +++ b/rpcs3/Emu/NP/np_helpers.cpp @@ -48,7 +48,7 @@ namespace np return std::nullopt; } - strcpy_trunc(id.data, split_id); + strcpy_trunc(id.data, split_id[0]); id.num = std::stoi(std::string(split_id[1])); return id;