1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

sceNp: disable Canonicalize functions for RPCN

This commit is contained in:
Megamouse 2024-01-14 21:11:25 +01:00
parent ecacb874e4
commit fa7ef870dd
2 changed files with 16 additions and 14 deletions

View File

@ -2733,7 +2733,7 @@ error_code sceNpCommerceDoCheckoutStartAsync(u32 ctx_id, vm::cpptr<char> 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<SceNpId> 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<SceNpId> 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;
}

View File

@ -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