feat(libSceSaveData): add provisional abort and clear progress stubs #12699
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12699"
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 SnekPolylepis on 2026-10-29T02:56:54Z.
What
sceSaveDataAbortandsceSaveDataClearProgresscheck initialization and return success without cancelling operations or clearing progress. Their signatures, console errors and behavior remain unverified, and both are recorded as silent stubs.sceSaveDataClearProgressdoes not reset convert progress.After review,
sceSaveDataGetMountedSaveDataCountis left throwing: its signature and behavior are unverified. SharpEmu and RPS5E write through a second argument and return a status, while the previous implementation returned a count directly. Their console accuracy is not established.Tested
General.hpp.python3 tools/check_conventions.py --base HEAD^ --head HEADandgit diff --check HEAD^..HEADpass for the review update.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)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T03:49:19Z.
Review: CHANGES_REQUESTED
Thanks for addressing the debt-file requests. One blocking point remains:
core/libs/prx/libSceSaveData.native/Export.cpp:1212sceSaveDataGetMountedSaveDataCountreturns the count as the result, but the two references your own PR cites (SharpEmu and RPS5E) both take the output address in the second argument and return 0, and nothing established the no-argument form (shadPS4 only has a stub). Onmainthis threw, which is the safe behaviour for an unknown ABI; returning a plausible count through a guessed convention can silently give a caller a wrong value and leave its output buffer unwritten. No title in our import census calls it, so there is no reason to guess. Either keep it throwing throughNotImplemented_nid_no_patch, or bring evidence for the convention (a call-site trace or disassembly of a module that calls it, or an SDK reference) and implement that one with a test pinning the output argument.sceSaveDataAbort/sceSaveDataClearProgress(Export.cpp:1043,:1110): success with no effect and unknown signatures are the same situation. If you keep them, the Silent stubs entry already covers it; otherwise leave them throwing until there is evidence for the argument list.Happy to re-review once the ABI question is settled.