docs(libSceSaveData.native): list sceSaveDataPrepare and sceSaveDataCommit as silent stubs and note how six titles use their results #11697
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11697"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-27T03:49:45Z.
What
sceSaveDataPrepareandsceSaveDataCommitreturnSAVE_DATA_OKwithout reading their arguments. They are silent stubs, butlibSceSaveData.native.mddoesn'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 ofeax. 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/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code