feat(libSceNpEntitlementAccess): implement sceNpEntitlementAccessGetPftFlag #4860
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4860"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-13T00:28:42Z.
What
Implement
sceNpEntitlementAccessGetPftFlaginlibSceNpEntitlementAccess(Play First Trial flag).uint32_t* flagoutput and returns 0.0x817D0002whenflagis null.sceNpEntitlementAccessGetGameTrialsFlagand sharpemusrc/SharpEmu.Libs/Np/NpEntitlementAccessExports.cs:98-116.docs/dev/debt/libSceAudioOut.mdanddocs/dev/debt/libSceNpEntitlementAccess.md.core/libs/tests/GuestOfflineImports.cpp.Tested
guest_offline_importsctest passed (100% tests passed).python tools/check_conventions.py --base origin/main).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T00:29:03Z.
Progress report (
bd826d5→dd5853d)📈 System libraries: 88.24% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpEntitlementAccessGetPftFlagImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:11:53Z.
Checked the build,
guest_offline_imports(it fails without the change and passes with it) and the other core/libs tests; merging.Added one commit: the debt line cited sharpemu
NpEntitlementAccessExports.cs#L98-L116forsceNpEntitlementAccessGetPftFlag, but that range only hasGetGameTrialsFlag(sharpemu has no Pft export). The line now cites dlc_emu, whosedlcEmu_sceNpEntitlementAccessGetPftFlaghas the same signature, writes OFF (0) and returns the parameter error for null. Please cite sources that actually cover the function next time.