refactor(prx): name the UserService inventory stubs the NID database resolves #17254

Merged
dkdhanda8 merged 1 commit from upstream-pr/17254 into main 2026-11-12 01:14:55 +00:00
dkdhanda8 commented 2026-11-08 16:22:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dkdhanda8 on 2026-11-08T16:22:37Z.


What

Five libSceUserService inventory stubs whose NIDs resolve in the pinned public symbol databases are renamed after their resolved symbols, following the merged AudioIn/Json/CommonDialog naming series:

  • sceUserServiceSetAccessibilityKeyremapEnableAston (NID Q89EQaIzT0o)
  • sceUserServiceSetHmd2CinematicAudioRotation (NID 1NGArQcf8aA)
  • sceUserServiceSetIsPersonalizedHrtfEnabled (NID enesn4WCCAc)
  • sceUserServiceSetUserWithHearingAssist (NID O8g8pltXaSU) — the four in Inventory1360Exports.cpp
  • sceUserServiceSetVoiceAgentEnableByButton (NID Jz06XYyyqGE) — in InventoryExports.cpp

Each resolved name was verified by reproducing its NID with tools/nid_names.py's compute_nid and matching it against aerolib.csv and the ps5rs catalog. The explicit APS5_EXPORT registrations and the _nid_no_patch suffixes come off; the bare names hash to the same NIDs. A new include/Exports.hpp declares the five for import resolution and the umbrella includes it. The debt entry records that the database resolves four of the twelve named 13.60 entries; signatures and behavior stay unverified and every stub still throws.

Tested

  • tools/check_conventions.py --base origin/main passes; git diff --check is clean.
  • Both edited inventory translation units and the umbrella compile (-fsyntax-only, MinGW); the stubs' throw behavior is unchanged, so the existing ctest coverage is unaffected.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); no silent stubs added
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (naming refactor)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5212972236 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17254). Originally posted by [dkdhanda8](https://github.com/dkdhanda8) on 2026-11-08T16:22:37Z. --- ### What Five `libSceUserService` inventory stubs whose NIDs resolve in the pinned public symbol databases are renamed after their resolved symbols, following the merged AudioIn/Json/CommonDialog naming series: - `sceUserServiceSetAccessibilityKeyremapEnableAston` (NID `Q89EQaIzT0o`) - `sceUserServiceSetHmd2CinematicAudioRotation` (NID `1NGArQcf8aA`) - `sceUserServiceSetIsPersonalizedHrtfEnabled` (NID `enesn4WCCAc`) - `sceUserServiceSetUserWithHearingAssist` (NID `O8g8pltXaSU`) — the four in `Inventory1360Exports.cpp` - `sceUserServiceSetVoiceAgentEnableByButton` (NID `Jz06XYyyqGE`) — in `InventoryExports.cpp` Each resolved name was verified by reproducing its NID with `tools/nid_names.py`'s `compute_nid` and matching it against [aerolib.csv](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) and the [ps5rs catalog](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/nids.csv). The explicit `APS5_EXPORT` registrations and the `_nid_no_patch` suffixes come off; the bare names hash to the same NIDs. A new `include/Exports.hpp` declares the five for import resolution and the umbrella includes it. The debt entry records that the database resolves four of the twelve named 13.60 entries; signatures and behavior stay unverified and every stub still throws. ### Tested - `tools/check_conventions.py --base origin/main` passes; `git diff --check` is clean. - Both edited inventory translation units and the umbrella compile (`-fsyntax-only`, MinGW); the stubs' throw behavior is unchanged, so the existing ctest coverage is unaffected. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (naming refactor) - [x] AI-assisted: yes
gabichuuuuu commented 2026-11-08 19:20:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T19:20:32Z.

Review: COMMENTED


Windows build of this head merged onto main 9fabd4aa7e, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release, BUILD_TESTING=ON.

  • The library builds and links. All 138 guest_hmd2*, guest_user_service*, guest_icu*, guest_nkwebkit_requirements* and guest_libre_ssl* tests pass.
  • Same exports. I listed every NID the library exports before and after, using tools/nid_names.py's own rules: APS5_EXPORT literals, plus compute_nid of each APS5_VABI, assembly and data definition that isn't _nid_no_patch. The set is identical to main's, with no NID defined twice.
  • The 5 renamed NIDs were throwing _nid_no_patch stubs on main, and they still throw under their real names, so behaviour is unchanged.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819297661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17254#pullrequestreview-5819297661). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T19:20:32Z. **Review:** COMMENTED --- Windows build of this head merged onto `main` `9fabd4aa7e`, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release, `BUILD_TESTING=ON`. - The library builds and links. All 138 `guest_hmd2*`, `guest_user_service*`, `guest_icu*`, `guest_nkwebkit_requirements*` and `guest_libre_ssl*` tests pass. - **Same exports.** I listed every NID the library exports before and after, using `tools/nid_names.py`'s own rules: `APS5_EXPORT` literals, plus `compute_nid` of each `APS5_VABI`, assembly and data definition that isn't `_nid_no_patch`. The set is identical to `main`'s, with no NID defined twice. - The 5 renamed NIDs were throwing `_nid_no_patch` stubs on `main`, and they still throw under their real names, so behaviour is unchanged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17254
No description provided.