diff --git a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp index dd515922a5..eb1e2846f0 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNpCommerce2.cpp @@ -137,6 +137,8 @@ error_code sceNpCommerce2Init() if (!nph.is_NP_init) return SCE_NP_ERROR_NOT_INITIALIZED; + nph.is_NP_Com2_init = true; + return CELL_OK; } @@ -144,6 +146,10 @@ error_code sceNpCommerce2Term() { sceNpCommerce2.warning("sceNpCommerce2Term()"); + auto& nph = g_fxo->get>(); + + nph.is_NP_Com2_init = false; + return CELL_OK; } @@ -379,7 +385,7 @@ error_code sceNpCommerce2GetCategoryContentsStart(u32 req_id, vm::cptr cat return CELL_OK; } -error_code get_result(u32 req_id, vm::ptr buf, u32 buf_size, vm::ptr fill_size) +error_code get_result(u32 /* req_id */, vm::ptr buf, u32 buf_size, vm::ptr fill_size) { if (!buf || !buf_size || ! fill_size) return SCE_NP_COMMERCE2_ERROR_INVALID_ARGUMENT; @@ -768,8 +774,6 @@ error_code sceNpCommerce2DoCheckoutStartAsync(u32 ctx_id, vm::cpptr sku_id if (sku_num > SCE_NP_COMMERCE2_SKU_CHECKOUT_MAX) return SCE_NP_COMMERCE2_ERROR_INVALID_SKU_NUM; - u32 uvar5 = sku_num; - for (u32 i = 0; i < sku_num; i++) { if (!sku_ids[i] || !sku_ids[i][0])