Skip to content

feat(userservice): implement sceUserServiceGetAgeLevel - #705

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
merwie:feat/userservice-age-level
Oct 5, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
merwie:feat/userservice-age-level

Conversation

@merwie

@merwie merwie commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

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.

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

Report age level 0 for the initial user and reject other users and a null
output like the other user queries. The meaning of the value is unknown and
recorded in the technical debt; PPSA12544 only stores it for its user
profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/userservice-age-level

# Conflicts:
#	docs/dev/TechnicalDebt.md
@github-actions github-actions Bot added docs prx and removed needs rebase Conflicts with main, rebase needed labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

Progress report (2707b3a → aaefea9)

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

✅ 1 implemented
Library Name
libSceUserService sceUserServiceGetAgeLevel

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

@oneandonlydean
oneandonlydean merged commit 398d03e into boykopovar:main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants