feat(userservice): implement sceUserServiceGetAgeLevel #705

Merged
merwie merged 2 commits from upstream-pr/705 into main 2026-10-05 23:16:26 +00:00
merwie commented 2026-10-05 17:21:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-05T17:21:41Z.


What

sceUserServiceGetAgeLevel(user_id, age_level) threw not implemented. It now validates like the other user queries (null output or a user other than the initial user returns USER_SERVICE_ERROR_INVALID_ARGUMENT) and reports 0.

The meaning of the value is unknown (no reimplementation or documentation found; shadPS4 has no PS4 counterpart), so 0 follows the unset game presets of sceUserServiceGetGamePresets; recorded in TechnicalDebt. PPSA12544 (Hollow Knight: Silksong, Unity) calls it while filling its user profile, between sceUserServiceGetUserName and sceUserServiceGetGamePresets, and only stores the value (exposed to scripts as AgeLevel).

Tested

Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT.

  • ctest: 286/288 passed. agc_driver_lds_atomics64 and agc_driver_vopc_compare_table fail on this machine on main as well (Vulkan device tests).
  • PPSA12544 with #698, #699, #700: continues past the user profile to sceKernelIsStack (#702).

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); silent stubs are listed in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4748522215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/705). Originally posted by [merwie](https://github.com/merwie) on 2026-10-05T17:21:41Z. --- ### What `sceUserServiceGetAgeLevel(user_id, age_level)` threw `not implemented`. It now validates like the other user queries (null output or a user other than the initial user returns `USER_SERVICE_ERROR_INVALID_ARGUMENT`) and reports 0. The meaning of the value is unknown (no reimplementation or documentation found; shadPS4 has no PS4 counterpart), so 0 follows the unset game presets of `sceUserServiceGetGamePresets`; recorded in TechnicalDebt. PPSA12544 (Hollow Knight: Silksong, Unity) calls it while filling its user profile, between `sceUserServiceGetUserName` and `sceUserServiceGetGamePresets`, and only stores the value (exposed to scripts as `AgeLevel`). ### Tested Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT. - `ctest`: 286/288 passed. `agc_driver_lds_atomics64` and `agc_driver_vopc_compare_table` fail on this machine on `main` as well (Vulkan device tests). - PPSA12544 with #698, #699, #700: continues past the user profile to `sceKernelIsStack` (#702). ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [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] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-05 22:57:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T22:57:26Z.


Progress report (2707b3a → aaefea9)

📈 System libraries: 79.57% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceUserService sceUserServiceGetAgeLevel
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6004903174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/705#issuecomment-6004903174). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T22:57:26Z. --- <!-- progress-report --> ### Progress report (2707b3a → aaefea9) 📈 **System libraries**: 79.57% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceUserService | `sceUserServiceGetAgeLevel` | </details>
github-actions[bot] commented 2026-10-05 23:09:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T23:09:53Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#704 docs/dev/TechnicalDebt.md L93
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6005103560 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/705#issuecomment-6005103560). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T23:09:53Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #704 | `docs/dev/TechnicalDebt.md` [L93](https://github.com/boykopovar/AnyPS5/blob/a4bc492b823f09733b522e0940634e6b85493439/docs/dev/TechnicalDebt.md#L93) | | |
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!705
No description provided.