fix(libkernel): create per-title data directory #4648
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4648"
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 likecrank-dotcom on 2026-10-12T17:48:46Z.
What
Fixes #4643.
Create a data directory inside each title's per-run working directory during libkernel startup. This provides the empty /data mount point expected by homebrew titles, independently of param.json or download-data metadata.
Tested
Windows native, MinGW GCC 15.2, Release:
No title runtime was run. The empty directory addresses ProsperoEden's reported directory probe; PS5CEMU-HAR's later need for installed files under /data/homebrew/
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T17:54:15Z.
I independently tested this behavior on Linux x86-64 with GCC 12.2 Release using an equivalent candidate patch:
download_data_mount_testsbuilt and all 3/3 matching CTest cases passed; the conventions check andgit diff --checkalso passed. This run used the candidate checkout, not this PR head, so this is supporting evidence rather than a report of testing this exact commit. The PR checks are still running.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T18:15:57Z.
Review: COMMENTED
One test-repeatability issue:
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T18:15:58Z.
Code review location:
core/libs/tests/GuestDownloadDataMount.cpp; line 14The
invalidcase returns without removingdata. CMake reuses this case's working directory, so after one successful run a later run can pass this assertion using the stale directory even if startup stops creating it. Please removedatabefore the early return (or otherwise reset this fixture before each run).Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T23:08:28Z.
Windows test: head
23fa23ff5merged onto currentmain0428328b7(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest with the filterdownload_data_mount: download_data_mount_declared passed, download_data_mount_none passed, download_data_mount_invalid passed (3 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:43:58Z.
Closing: #4690, now merged, creates the same
datadirectory, but only whereapp0/sce_sys/param.jsonmarks a run folder, and was run on two titles from #4643. Created unconditionally, it also appears wherever a test loads libkernel, including the source tree.Pull request closed