libSceNpEntitlementAccess/libSceRazorCpu/libSceSharePlay: three small PRAGMATA exports; branch ready #3767
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T16:36:13Z.
Three small exports PRAGMATA (#3043, xXPBSXx's comments 6106731532 and 6107100345) needs are absent or throwing:
sceNpEntitlementAccessGetGameTrialsFlag(libSceNpEntitlementAccess,y7JD1gfwyfA, the title's reported stop onmain:sceNpEntitlementAccessGetGameTrialsFlag not implemented),sceRazorCpuSync(libSceRazorCpu,Ax7NjOzctIM) andsceSharePlayProhibitController(libSceSharePlay,FzQS6DREDfk); PRAGMATA fails to load on the two absent imports.Branch ready:
screamm:feat/pragmata-small-exports(three commits onmaina11c8f7f, head08f590e3, one per function). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commits as they are.sceNpEntitlementAccessGetGameTrialsFlag(uint32_t* flag): writes 0 (full game) and returns 0,0x817D0002for a null pointer, per sharpemuNpEntitlementAccessExports.cs:98-116(a2983692; GPL-2.0-or-later, facts only), the parameter error KytyPS5, prosper and this file's ownGetEntitlementKeyuse. No initialization check, because the library has none anywhere. The neighbouringGetSkuFlagreturns0x80558003for a null pointer, so the file now has two unmeasured null codes; recorded in TechnicalDebt together with the possibility of a second argument (four live registers at PRAGMATA's call site).sceRazorCpuSync(): returns 0 and does nothing, like the other Razor exports without an attached capture (SharpProsperoInterop/Debug/RazorCpu.cs:119-122, shadPS4razor_cpu.cpp:143-146); listed under TechnicalDebt's Silent stubs as the conventions check requires for a barereturn 0, the same way open #3560 does for its Razor function.sceSharePlayProhibitController(int prohibited): 0 and 1 return 0; other values throw, because sharpemu's0x80020003is a synthetic code andsceSharePlayInitializehere already throws for its unknown error. The setting is not stored (no Share Play session exists and no export reads it back).guest_offline_imports(one-word write, null pointer),guest_razor_cpu,guest_share_play(0 and 1 accepted, 2 and -1 throw).Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs: the three tests 3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"533/536, the failures being the knownwindows_exceptions(#3411, fixed by #3415),guest_kernel_sys(#3510) andguest_filesystem(#3518);tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).