From 94e8d6fe13afbd53fe836e4a0da2f691ee5cfba3 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 25 Jan 2024 22:01:47 +0100 Subject: [PATCH] Mini sceNpCommerce2Init fix --- rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp index 2967e7bda6..f682c7a2c5 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp @@ -83,6 +83,13 @@ error_code sceNpCommerce2Init() { sceNpCommerce2.warning("sceNpCommerce2Init()"); + auto& nph = g_fxo->get>(); + + if (!nph.is_NP_init) + { + return SCE_NP_ERROR_NOT_INITIALIZED; + } + return CELL_OK; }