feat(libSceNpEntitlementAccess): name each add-on a title asks for that the entitlements file does not list #12793
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12793"
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 Tehshortbus on 2026-10-29T09:39:45Z.
What
sceNpEntitlementAccessGetAddcontEntitlementInforeports an add-on as installed only when its label is inanyps5-entitlements.ini(or the fileANYPS5_ENTITLEMENTSnames). Every other label returnsSCE_NP_ENTITLEMENT_ACCESS_ERROR_NOT_FOUND, and nothing in the log says which label the title asked for.Some titles wait for an add-on they look for instead of going on without it. On plain
main, Ghost of Yōtei (PPSA26344) 02.002.000 asks 24 times forGHOSTYOTEIDUPLEXand then stays on its loading spinner, streaming only the spinner's bitmaps. Several people in #675 hit this spinner and had to guess the labels. The ones posted there (GHOST2APP0000000,GHOST2BASE000000) are not queried by this version.sceNpEntitlementAccessGetAddcontEntitlementInfo: the first query for each label the file does not list prints one line, then returnsNOT_FOUNDas before:[entitlements] the title asked for the add-on GHOSTYOTEIDUPLEX, which anyps5-entitlements.ini does not list, so it is reported as not installedanyps5-entitlements.ini, or by the pathANYPS5_ENTITLEMENTSgives when it is set, so the default line holds no home directory.\xNN, so a label from the title cannot forge or hide log lines.docs/user/USAGE.md: a new Add-ons section documentsanyps5-entitlements.ini(location, format,ANYPS5_ENTITLEMENTS), the new line with a neutral example label, its escaping and limit, and the PPSA26344 02.002.000 case by title ID. The file was documented only in the developer environment table.Tested
CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release.
guest_entitlementscaptures stderr around three groups of queries.guest_entitlementsandguest_entitlements_missingpass.\x0a,\x1band\x5con its own line, and no raw escape byte reaches the log.guest_entitlementsaborts without the new line inExport.cpp, without the escaping, and without the limit.main+ this PR):anyps5-entitlements.inilisting onlyGHOST2APP0000000andGHOST2BASE000000, the log has exactly one[entitlements]line for the 24 queries:the title asked for the add-on GHOSTYOTEIDUPLEX, which anyps5-entitlements.ini does not list, so it is reported as not installed(headb98d3e1f8b, withoutANYPS5_ENTITLEMENTS).GHOSTYOTEIDUPLEXadded to the file (a run onmain), the title leaves the spinner: in the first 3 minutes it streams 1,282 reads (the main game pack, character, animation, environment, effects and sound packs, cutscene movies), where before it read only the spinner's bitmaps. That a listed label prints nothing is whatguest_entitlementschecks.python3 tools/check_conventions.py --base origin/mainandgit diff --checkpass.Overlap:
tools/pr_overlap.pylists #11909 and #11941, which also add test code at the end ofmain()incore/libs/tests/GuestEntitlements.cpp. The tests are independent; whichever merges later rebases those lines.Export.cpp, not the add-on lookup, and the other nine share onlydocs/user/USAGE.mdwithout touching entitlements.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)🤖 Generated with Claude Code