diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 5d7af105ee..fb11e5cda2 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -2733,7 +2733,7 @@ error_code sceNpCommerceDoCheckoutStartAsync(u32 ctx_id, vm::cpptr sku_ids if (false) // TODO return SCE_NP_COMMERCE_ERROR_NOT_INITIALIZED; - if (!sku_num || sku_num > 16) // TODO + if (!sku_num || sku_num > 16) return SCE_NP_COMMERCE_ERROR_INVALID_SKU_NUM; if (false) // TODO @@ -6857,13 +6857,14 @@ error_code sceNpUtilCanonicalizeNpIdForPs3(vm::ptr npId) if (!npId) return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT; - if (npId->reserved[0] != 1) - return SCE_NP_UTIL_ERROR_INVALID_NP_ID; + // TODO: These checks are commented out for compatibility with RPCN for now + //if (npId->reserved[0] != 1) + // return SCE_NP_UTIL_ERROR_INVALID_NP_ID; - if (!npId->unk1[1]) - { - npId->unk1[1] = "ps3\0"_u32; - } + //if (!npId->unk1[1]) + //{ + // npId->unk1[1] = "ps3\0"_u32; + //} return CELL_OK; } @@ -6875,13 +6876,14 @@ error_code sceNpUtilCanonicalizeNpIdForPsp(vm::ptr npId) if (!npId) return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT; - if (npId->reserved[0] != 1) - return SCE_NP_UTIL_ERROR_INVALID_NP_ID; + // TODO: These checks are commented out for compatibility with RPCN for now + //if (npId->reserved[0] != 1) + // return SCE_NP_UTIL_ERROR_INVALID_NP_ID; - if (!npId->unk1[1]) - { - npId->unk1[1] = "psp\0"_u32; // TODO: confirm - } + //if (!npId->unk1[1]) + //{ + // npId->unk1[1] = "psp\0"_u32; // TODO: confirm + //} return CELL_OK; } diff --git a/rpcs3/Emu/Cell/Modules/sceNp.h b/rpcs3/Emu/Cell/Modules/sceNp.h index fea9f9dce7..b603f3058d 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.h +++ b/rpcs3/Emu/Cell/Modules/sceNp.h @@ -1023,7 +1023,7 @@ enum SCE_NP_UTIL_NPID_VERSION = 1, SCE_NP_UTIL_NPLOBBYID_VERSION = 1, SCE_NP_UTIL_NPROOMID_VERSION = 1, - SCE_NP_COMMERCE_VERSION = 1, // TODO: is there a real name? + SCE_NP_COMMERCE_VERSION = 1, }; // Languages