feat(savedata): implement the PS4 transfer mount and directory search #713
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/713"
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 adriadam10 on 2026-10-05T17:42:21Z.
What
Gives the two
sceSaveDataUnknown00/01stubs of libSceSaveData.native their real names (NIDsRjMlsR8EXrw,X4MYzukPc3g, hash-checked withtools/nid_names.py; the builtlibSceSaveData.native.prxstill exports both NIDs) and implements them. Both are the PS4-save variants of functions this module already has.sceSaveDataTransferringMountPs4: same assceSaveDataTransferringMounthere, returns0x809F0008(NOT_FOUND) with the result cleared, as there is no PS4 save data to transfer. KytyPS5 (src/libs/libSaveData.cpp) binds this NID to the same function assceSaveDataTransferringMount; prosper (src/hle/fs/savedata.cpp) returns NOT_FOUND for it too, and notes that a title gates on the result and breaks when told the mount succeeded.sceSaveDataDirNameSearchPs4: writes zero hits and zero set entries and returns 0. prosper returns that and captured the same result layout on a title for both the PS4 and PS5 search. KytyPS5 binds the NID to its PS5 search, which filters by the title id the caller passes, so a search for a PS4 title id finds nothing there either. Our PS5 search does not filter by title id, so the PS4 one doesn't reuse it (it would report this title's own saves as PS4 saves). Null arguments throw, like the PS5 search.Arguments are assumed to be the PS5 functions' ones: listed under "Unknown function info" in TechnicalDebt.
Tested
Linux, GCC Release. New
guest_savedata_ps4(cwd in a temp dir with one PS5 save): the mount returns NOT_FOUND with an empty mount point; the PS5 search finds the save (control) while the PS4 search writes 0/0 over pre-filled 7/7 and leaves the name buffer untouched; both null arguments throw. It fails onmain(the stubs throw / the names don't exist) and with each of five mutations (mount returns 0, nohit_numwrite, noset_numwrite, search aliased to the PS5 one, no null check ofcond). Fullninja+ninja libs,ctest -R 'guest_|savedata'102/102 pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T17:42:46Z.
Progress report (
0518f0e→e923bea)📈 System libraries: 79.27% (+0.06%, +2 implemented, -2 removed functions)
✅ 2 implemented
sceSaveDataDirNameSearchPs4sceSaveDataTransferringMountPs4🗑️ 2 removed
sceSaveDataUnknown00sceSaveDataUnknown01Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T18:15:23Z.
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.
main)docs/dev/TechnicalDebt.mdL37