mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fix sceNpCommerce2 init
This commit is contained in:
parent
3dbde04d18
commit
e9713f9635
1 changed files with 7 additions and 3 deletions
|
@ -137,6 +137,8 @@ error_code sceNpCommerce2Init()
|
||||||
if (!nph.is_NP_init)
|
if (!nph.is_NP_init)
|
||||||
return SCE_NP_ERROR_NOT_INITIALIZED;
|
return SCE_NP_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
|
nph.is_NP_Com2_init = true;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,6 +146,10 @@ error_code sceNpCommerce2Term()
|
||||||
{
|
{
|
||||||
sceNpCommerce2.warning("sceNpCommerce2Term()");
|
sceNpCommerce2.warning("sceNpCommerce2Term()");
|
||||||
|
|
||||||
|
auto& nph = g_fxo->get<named_thread<np::np_handler>>();
|
||||||
|
|
||||||
|
nph.is_NP_Com2_init = false;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -379,7 +385,7 @@ error_code sceNpCommerce2GetCategoryContentsStart(u32 req_id, vm::cptr<char> cat
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_code get_result(u32 req_id, vm::ptr<void> buf, u32 buf_size, vm::ptr<u32> fill_size)
|
error_code get_result(u32 /* req_id */, vm::ptr<void> buf, u32 buf_size, vm::ptr<u32> fill_size)
|
||||||
{
|
{
|
||||||
if (!buf || !buf_size || ! fill_size)
|
if (!buf || !buf_size || ! fill_size)
|
||||||
return SCE_NP_COMMERCE2_ERROR_INVALID_ARGUMENT;
|
return SCE_NP_COMMERCE2_ERROR_INVALID_ARGUMENT;
|
||||||
|
@ -768,8 +774,6 @@ error_code sceNpCommerce2DoCheckoutStartAsync(u32 ctx_id, vm::cpptr<char> sku_id
|
||||||
if (sku_num > SCE_NP_COMMERCE2_SKU_CHECKOUT_MAX)
|
if (sku_num > SCE_NP_COMMERCE2_SKU_CHECKOUT_MAX)
|
||||||
return SCE_NP_COMMERCE2_ERROR_INVALID_SKU_NUM;
|
return SCE_NP_COMMERCE2_ERROR_INVALID_SKU_NUM;
|
||||||
|
|
||||||
u32 uvar5 = sku_num;
|
|
||||||
|
|
||||||
for (u32 i = 0; i < sku_num; i++)
|
for (u32 i = 0; i < sku_num; i++)
|
||||||
{
|
{
|
||||||
if (!sku_ids[i] || !sku_ids[i][0])
|
if (!sku_ids[i] || !sku_ids[i][0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue