Skip to content

feat(libSceUgcServiceS3): add skeleton library and 14 firmware 13.60 stubs - #13363

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
hypermoist:feat/libSceUgcServiceS3-skeleton-stubs
Oct 30, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
hypermoist:feat/libSceUgcServiceS3-skeleton-stubs

Conversation

@hypermoist

@hypermoist hypermoist commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds libSceUgcServiceS3 as a skeleton library. It isn't in AnyPS5 yet, but libSceUgcServiceS3.sprx from firmware 13.60 exports 14 symbols (read from the module's export table, not measured on a console). A title that imports this module now gets a libSceUgcServiceS3.prx to link against.

  • 14 stubs: one per function export no other library already defines, generated with tools/stubgen.py. 4 use their aerolib name, kept only where compute_nid reproduces the NID. 10 have no known name and are bound by NID as UnknownNN. Each one throws through NotImplemented_nid_no_patch. Signatures are unknown, so every declaration takes no parameters.
  • Debt: docs/dev/debt/libSceUgcServiceS3.md records that the names, signatures and behaviour are unverified.

Tested

Linux (CachyOS, GCC 16.2, Release), on head cb9c1366693bd3bce34b1034f93367abf717796d: this branch with main at 50c39f09b500b17f10b18bb6ee6efe46aa525e47 merged in. The scripts are in this gist (see "Skeleton libraries" in its README). libSceUgcServiceS3.so is libSceUgcServiceS3.sprx of firmware 13.60, relinked with relinker --no-patches --skip-sce-module --skip-syscall-check --registry; the module isn't attached.

  • Generated files: deleting the library and its debt file and running skeleton_generate.py leaves git status empty, so the committed files are exactly its output (stubgen unchanged).
  • Build: the NID-patched .prx builds, and nid_patcher reports OK.
  • Exports: skeleton_check_prx.py checks that the built .prx exports every expected NID, repeats none from another library, and has no extra NID besides stubgen's UnknownNN helper names.
$ python3 -I skeleton_generate.py libSceUgcServiceS3.so . libSceUgcServiceS3 aerolib.csv
libSceUgcServiceS3: 14 stubs (10 by NID), 0 exported elsewhere, 0 data objects
$ git status --porcelain
(end of status)
$ ninja -C build core/libs/libs/libSceUgcServiceS3.prx
OK: build/core/libs/libs/libSceUgcServiceS3.prx
$ python3 -I skeleton_check_prx.py build/core/libs/libs/libSceUgcServiceS3.prx libSceUgcServiceS3.so .
libSceUgcServiceS3: module exports 14 (0 data objects, 0 functions exported by other libraries); expected 14, present 14, missing 0, repeated 0, UnknownNN helper NIDs 10, unexplained 0
exit 0

check_conventions on the same head:

$ python3 tools/check_conventions.py --base upstream/main
All conventions checks passed.
exit 0

pr_overlap on the same head, against main at 50c39f09b500b17f10b18bb6ee6efe46aa525e47. The run is complete; only its final progress lines are kept:

$ python3 tools/pr_overlap.py --base main --repo boykopovar/AnyPS5 --branch feat/libSceUgcServiceS3-skeleton-stubs
pr_overlap: 1535 open pull requests against main
pr_overlap: fetched 1535/1535 pull request heads
pr_overlap: probed 1534/1534 pull requests, 0 share files or exports with the branch
No overlap with open pull requests.

No behaviour to test: every export throws. Windows not built. Not run on a console.

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 under Silent stubs in their library's technical debt file
  • 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
  • AI-assisted: yes

Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console.

🤖 Generated with Claude Code

…stubs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Progress report (9f748f4 → cb9c136)

📉 System libraries: 27.25% (-0.01%, +14 declared functions)

🆕 14 declared as stubs
Library Name
libSceUgcServiceS3 sceUgcServiceS3CancelRequest
libSceUgcServiceS3 sceUgcServiceS3CreateRequest
libSceUgcServiceS3 sceUgcServiceS3DownloadFileWithGmsResponse
libSceUgcServiceS3 sceUgcServiceS3Unknown00
libSceUgcServiceS3 sceUgcServiceS3Unknown01
libSceUgcServiceS3 sceUgcServiceS3Unknown02
libSceUgcServiceS3 sceUgcServiceS3Unknown03
libSceUgcServiceS3 sceUgcServiceS3Unknown04
libSceUgcServiceS3 sceUgcServiceS3Unknown05
libSceUgcServiceS3 sceUgcServiceS3Unknown06
libSceUgcServiceS3 sceUgcServiceS3Unknown07
libSceUgcServiceS3 sceUgcServiceS3Unknown08
libSceUgcServiceS3 sceUgcServiceS3Unknown09
libSceUgcServiceS3 sceUgcServiceS3UploadFileWithGmsResponse

Changed libraries (implemented exports)

Library Before After Change
libSceUgcServiceS3 Not present 0/14 (0.00%) n/a

@adriadam10 adriadam10 self-assigned this Oct 30, 2026
@adriadam10
adriadam10 merged commit 16345ca into boykopovar:main Oct 30, 2026
12 of 14 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the 14 stubs: all throw through NotImplemented_nid_no_patch, the 4 named ones hash to their NIDs, the 10 others are bound by NID, and the debt file records the unknown signatures. No overlap left (#13406 is closed); merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants