docs(libSceSaveData.native): list sceSaveDataPrepare and sceSaveDataCommit as silent stubs and note how six titles use their results #11697

Merged
milescoviello merged 3 commits from upstream-pr/11697 into main 2026-10-27 11:36:15 +00:00
milescoviello commented 2026-10-27 03:49:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-27T03:49:45Z.


What

sceSaveDataPrepare and sceSaveDataCommit return SAVE_DATA_OK without reading their arguments. They are silent stubs, but libSceSaveData.native.md doesn't list them. This adds a Silent stubs section with one entry for the pair, and notes what the six titles that call both do with the results:

  • sceSaveDataPrepare (11 call sites): PPSA01494, PPSA30839 and PPSA31162 don't test it right after the call. PPSA03984 takes an error path when it is negative. PPSA34502 checks it at one of its two sites, and PPSA36591 at two of its four.
  • sceSaveDataCommit (14 call sites): PPSA01494 and PPSA30839 don't test it right after the call. PPSA03984 and PPSA31162 check its sign. PPSA34502 checks it at all five sites, and PPSA36591 at two of its four.

So a failure code from either would change the save flow of the titles that check it, while the stubs keep all six on the success path.

How

I found the call sites through each import's PLT stub in each title's relinked eboot.bin. For each call I looked at the three instructions right after it for a test of eax. A result that is saved and tested later isn't counted, so "don't test it" means "not right after the call". No code change.

Changed: docs/dev/debt/libSceSaveData.native.md.

Tested

Docs only. tools/check_conventions.py --base upstream/main passes.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5028281612 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11697). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-27T03:49:45Z. --- ### What `sceSaveDataPrepare` and `sceSaveDataCommit` return `SAVE_DATA_OK` without reading their arguments. They are silent stubs, but `libSceSaveData.native.md` doesn't list them. This adds a Silent stubs section with one entry for the pair, and notes what the six titles that call both do with the results: - `sceSaveDataPrepare` (11 call sites): PPSA01494, PPSA30839 and PPSA31162 don't test it right after the call. PPSA03984 takes an error path when it is negative. PPSA34502 checks it at one of its two sites, and PPSA36591 at two of its four. - `sceSaveDataCommit` (14 call sites): PPSA01494 and PPSA30839 don't test it right after the call. PPSA03984 and PPSA31162 check its sign. PPSA34502 checks it at all five sites, and PPSA36591 at two of its four. So a failure code from either would change the save flow of the titles that check it, while the stubs keep all six on the success path. ### How I found the call sites through each import's PLT stub in each title's relinked `eboot.bin`. For each call I looked at the three instructions right after it for a test of `eax`. A result that is saved and tested later isn't counted, so "don't test it" means "not right after the call". No code change. Changed: `docs/dev/debt/libSceSaveData.native.md`. ### Tested Docs only. `tools/check_conventions.py --base upstream/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!11697
No description provided.