feat(libSceAppContent): implement temporary data mount #9114

Merged
voidlakhan merged 2 commits from upstream-pr/9114 into main 2026-10-22 22:02:30 +00:00
voidlakhan commented 2026-10-21 12:36:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by voidlakhan on 2026-10-21T12:36:12Z.


What

sceAppContentTemporaryDataMount was an unimplemented throwing stub. It now delegates to sceAppContentTemporaryDataMount2 with TEMPORARY_DATA_OPTION_FORMAT (option 1), following the wrapper behavior documented in shadPS4.

Regression tests cover null-pointer validation, successful mounting and the /temp0 mount point, directory formatting, busy-state handling across the v1 and v2 APIs, and unmount/remount behavior.

The technical-debt entry documents the modeled behavior while retaining the caveat that PS5 console behavior and hardware return values have not been measured.

Tested

Windows 11, Intel Core i5-8250U, MinGW-w64 GCC 15.2.0 and Ninja.
Build: ninja -C build-full guest_appcontent_tests — passed.
Test: ctest --test-dir build-full -R guest_appcontent -V — 1/1 passed (0.34 seconds).
python tools/check_conventions.py --base upstream/main — passed, zero errors and zero warnings after the documentation follow-up commit.
git diff --check — passed.
python tools/pr_overlap.py --branch feat/appcontent-temporary-data-mount completed, but overlap verification was inconclusive for core/libs/tests/GuestAppContent.cpp because open PR #6044 includes that file in a broad test reorganization. An independent check of open PR file lists found no direct functional overlap.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4951638635 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9114). Originally posted by [voidlakhan](https://github.com/voidlakhan) on 2026-10-21T12:36:12Z. --- ### What sceAppContentTemporaryDataMount was an unimplemented throwing stub. It now delegates to sceAppContentTemporaryDataMount2 with TEMPORARY_DATA_OPTION_FORMAT (option 1), following the wrapper behavior documented in [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/app_content/app_content.cpp#L550-L553). Regression tests cover null-pointer validation, successful mounting and the /temp0 mount point, directory formatting, busy-state handling across the v1 and v2 APIs, and unmount/remount behavior. The technical-debt entry documents the modeled behavior while retaining the caveat that PS5 console behavior and hardware return values have not been measured. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11, Intel Core i5-8250U, MinGW-w64 GCC 15.2.0 and Ninja. Build: ninja -C build-full guest_appcontent_tests — passed. Test: ctest --test-dir build-full -R guest_appcontent -V — 1/1 passed (0.34 seconds). python tools/check_conventions.py --base upstream/main — passed, zero errors and zero warnings after the documentation follow-up commit. git diff --check — passed. python tools/pr_overlap.py --branch feat/appcontent-temporary-data-mount completed, but overlap verification was inconclusive for core/libs/tests/GuestAppContent.cpp because open PR #6044 includes that file in a broad test reorganization. An independent check of open PR file lists found no direct functional overlap. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 12:36:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:36:50Z.


Progress report (7280a17 → 8af8f1d)

📈 System libraries: 42.43% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAppContent sceAppContentTemporaryDataMount
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316064870 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9114#issuecomment-6316064870). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T12:36:50Z. --- <!-- progress-report --> ### Progress report (7280a17 → 8af8f1d) 📈 **System libraries**: 42.43% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAppContent | `sceAppContentTemporaryDataMount` | </details>
github-actions[bot] commented 2026-10-21 12:52:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:52:43Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestAppContent.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316473977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9114#issuecomment-6316473977). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T12:52:43Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestAppContent.cpp` |
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9114
No description provided.