libs: provide NpEntitlementAccessPft state query used by FC27 #1897
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1897
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1897/head"
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?
@herrMirto on GitHub · 2026-10-25 12:33 UTC · original
herrMirto:fix/fc27-pft-state-2→main· +26 −0 · 2 files · 1 commits · merged 2026-10-25 17:38 UTCWhile testing EA FC27 in Kick Off mode, I found that I could continue into the game with the
NpEntitlementAccessPftquery identified byeDXKe9FndlEwriting state2to its output parameter. This PR registers that query and preserves the behavior I used in my local testing.The distinction is important: the function writes
2to the output pointer and returns0for success. It does not return2as its status code.Implementation and reasoning
NpEntitlementAccessPftalongside the other network/NP libraries inlibNet.cpp.eDXKe9FndlEthrough the existing library/symbol registration mechanism, using the guest calling convention.2and return success.I have kept the symbol's name and comment explicit about the uncertainty: I do not know the complete semantics or official name of this query yet. This is the behavior that allowed my FC27 investigation to proceed; I am not claiming a complete implementation for other callers or titles.
My earlier PR #1697 exposed local additional-content entitlements through
dlc_emu.ini. With this query implemented, I no longer needed that configuration path for my current FC27 testing. This change does not include that parser or the DLC listing changes, and it is not intended to replace those APIs generally.Testing
I tested on SteamOS with a Ryzen 7 9800X3D, RX 9070 XT 16 GB and 32 GB RAM. My local build was based on
83f8bfd3and included this query together with the separate graphics corrections derived from #1693.--helpsuccessfully.git diff --checkpassed.The in-game result is from the combined build, not an isolated A/B test of this query. I did not add a dedicated automated test for the query or run other games to establish the meaning of state
2. The graphics regression tests belong to the companion graphics PR and should not be interpreted as coverage for this API.This PR contains only the two library files. The graphics fixes are submitted separately so the API behavior can be reviewed independently.
@coderabbitai[bot] on GitHub · 2026-10-25 12:37 UTC · original
No actionable comments were generated in the recent review.
561b7cb8-24f8-4434-b5b6-285f2b842b8fReviewing files that changed from the base of the PR and between
83f8bfd3c9andeff9de762b.src/libs/libNet.cppsrc/libs/libNpEntitlementAccess.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Walkthrough
The change adds the
LibNpEntitlementAccessPftinitializer to network-library initialization. It registers theNpEntitlementAccessPftlibrary and mapseDXKe9FndlEto a function that returns a parameter error for a null state pointer. Otherwise, the function sets the state to2and returns success.Suggested reviewers:
nmzik,shadowbeat070Priority:
Normal
Change: Feature
Merge Risk:
Minimal · up to
eff9dNo actionable merge-blocking risk is established.
Pre-merge checks:
4 ·
1
Full details: Title check
Explanation
The title names the change: it adds the NpEntitlementAccessPft state query in the libs area, and it names the consumer (FC27). The changeset registers the library in libNet.cpp and adds the eDXKe9FndlE export that writes state 2, so the title matches the main change.
Full details: Description check
Explanation
The description covers the changeset. It explains the NpEntitlementAccessPft query identified by eDXKe9FndlE, the null-pointer check, the write of state 2 with a success return, the registration in libNet.cpp, and the testing performed. It is detailed and directly tied to the two library files changed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.