fix(savedata): return no saves for a search with another title's ID #5133
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5133"
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 SandstromPL on 2026-10-13T12:24:12Z.
What
sceSaveDataDirNameSearchandsceSaveDataDirNameSearch2ignorecond->title_idand always list the running title's own saves. Minecraft Preview (PPSA19639) searches for another title's saves (PPSA17221). #1277 lists this as stop 3: such a search must return 0 hits, and here it returns Preview's own saves instead.Only the running title's saves are kept, so a search with another title's ID now reports zero hits. A null ID or the running title's ID searches as before. shadPS4 and KytyPS5 also search the given title's own save directory and report zero hits when it does not exist. #713 already noted that the PS5 search did not filter by title ID. The running title's ID is the
titleIdinparam.json(GetAppTitleId_nid_postfix), as for the otherparam.jsonlookups. What a console returns for another title's saves is not verified, and the debt entry records it.Tested
Ubuntu 24.04, GCC 13.3, full build (Release):
guest_savedata_searchgainsOtherTitle. Withparam.jsontitleId PPSA00000 and one save, both search functions must find:On main it fails with "a search for another title must find none of the running title's saves". It passes here, 5 runs out of 5. All 13 save data tests pass.
Built at
99e4dfefe. The save data, AppMetadata and libkernel sources are identical on currentmain; libc differs only inSyslog.cpp(#5048).Minecraft Preview was not run. #1277's stop 3 comes from its reporter's build. Of the earlier stops, #1092 fixed stop 1, but stop 2 (the NetCtl and NpManager callbacks) is still open on main.
#5094 changes other lines of
dirNameSearch, the same test file and the same debt file; the two merge cleanly.tools/check_conventions.pyfrom main passes with this title and body.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
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T15:35:42Z.
Windows test: head
d34b78890merged onto currentmain60fb61870, together with 9 other open pull requests in one build (the merges were conflict-free); a failure would have been bisected per PR. Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest for the tests this change adds or touches: guest_savedata_search passed;python tools/check_conventions.py --base upstream/mainpassed for the combined tree. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-13T15:42:25Z.
Thanks for the Windows run! For completeness: on Linux the new check fails on
main("a search for another title must find none of the running title's saves") and passes with this change, as listed under Tested.