mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
sceNp: disable Canonicalize functions for RPCN
This commit is contained in:
parent
ecacb874e4
commit
fa7ef870dd
2 changed files with 16 additions and 14 deletions
|
@ -2733,7 +2733,7 @@ error_code sceNpCommerceDoCheckoutStartAsync(u32 ctx_id, vm::cpptr<char> sku_ids
|
||||||
if (false) // TODO
|
if (false) // TODO
|
||||||
return SCE_NP_COMMERCE_ERROR_NOT_INITIALIZED;
|
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;
|
return SCE_NP_COMMERCE_ERROR_INVALID_SKU_NUM;
|
||||||
|
|
||||||
if (false) // TODO
|
if (false) // TODO
|
||||||
|
@ -6857,13 +6857,14 @@ error_code sceNpUtilCanonicalizeNpIdForPs3(vm::ptr<SceNpId> npId)
|
||||||
if (!npId)
|
if (!npId)
|
||||||
return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT;
|
return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT;
|
||||||
|
|
||||||
if (npId->reserved[0] != 1)
|
// TODO: These checks are commented out for compatibility with RPCN for now
|
||||||
return SCE_NP_UTIL_ERROR_INVALID_NP_ID;
|
//if (npId->reserved[0] != 1)
|
||||||
|
// return SCE_NP_UTIL_ERROR_INVALID_NP_ID;
|
||||||
|
|
||||||
if (!npId->unk1[1])
|
//if (!npId->unk1[1])
|
||||||
{
|
//{
|
||||||
npId->unk1[1] = "ps3\0"_u32;
|
// npId->unk1[1] = "ps3\0"_u32;
|
||||||
}
|
//}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
@ -6875,13 +6876,14 @@ error_code sceNpUtilCanonicalizeNpIdForPsp(vm::ptr<SceNpId> npId)
|
||||||
if (!npId)
|
if (!npId)
|
||||||
return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT;
|
return SCE_NP_UTIL_ERROR_INVALID_ARGUMENT;
|
||||||
|
|
||||||
if (npId->reserved[0] != 1)
|
// TODO: These checks are commented out for compatibility with RPCN for now
|
||||||
return SCE_NP_UTIL_ERROR_INVALID_NP_ID;
|
//if (npId->reserved[0] != 1)
|
||||||
|
// return SCE_NP_UTIL_ERROR_INVALID_NP_ID;
|
||||||
|
|
||||||
if (!npId->unk1[1])
|
//if (!npId->unk1[1])
|
||||||
{
|
//{
|
||||||
npId->unk1[1] = "psp\0"_u32; // TODO: confirm
|
// npId->unk1[1] = "psp\0"_u32; // TODO: confirm
|
||||||
}
|
//}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1023,7 +1023,7 @@ enum
|
||||||
SCE_NP_UTIL_NPID_VERSION = 1,
|
SCE_NP_UTIL_NPID_VERSION = 1,
|
||||||
SCE_NP_UTIL_NPLOBBYID_VERSION = 1,
|
SCE_NP_UTIL_NPLOBBYID_VERSION = 1,
|
||||||
SCE_NP_UTIL_NPROOMID_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
|
// Languages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue