feat(libSceAppContent): answer add-content mounts without installed content #796

Merged
CnRJay merged 1 commit from upstream-pr/796 into main 2026-10-06 03:32:13 +00:00
CnRJay commented 2026-10-06 01:19:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-06T01:19:11Z.


The emulator doesn't install any additional content (DLC). This PR makes the add-content mount calls report that, instead of throwing:

  • sceAppContentAddcontMount returns SCE_APP_CONTENT_ERROR_NOT_FOUND (0x80D90005) and leaves the mount point untouched.
  • sceAppContentAddcontUnmount returns NOT_FOUND, since no mount point is ever handed out.
  • A null entitlement label or mount point returns SCE_APP_CONTENT_ERROR_PARAMETER.

The error codes and the "missing content returns NOT_FOUND" rule match shadPS4 and the prosper reimplementation. The lack of add-content support is recorded under Functional in docs/dev/TechnicalDebt.md.

libSceAppContent gets its own CMakeLists.txt, following the libSceGameUpdate pattern, for the new guest_appcontent test. The full ctest suite passes (338/338), and libraries go from 2712 to 2714 out of 3342.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4752846489 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/796). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-06T01:19:11Z. --- The emulator doesn't install any additional content (DLC). This PR makes the add-content mount calls report that, instead of throwing: - `sceAppContentAddcontMount` returns `SCE_APP_CONTENT_ERROR_NOT_FOUND` (0x80D90005) and leaves the mount point untouched. - `sceAppContentAddcontUnmount` returns `NOT_FOUND`, since no mount point is ever handed out. - A null entitlement label or mount point returns `SCE_APP_CONTENT_ERROR_PARAMETER`. The error codes and the "missing content returns `NOT_FOUND`" rule match shadPS4 and the [prosper](https://github.com/mattias800/prosper) reimplementation. The lack of add-content support is recorded under Functional in `docs/dev/TechnicalDebt.md`. libSceAppContent gets its own `CMakeLists.txt`, following the libSceGameUpdate pattern, for the new `guest_appcontent` test. The full ctest suite passes (338/338), and libraries go from 2712 to 2714 out of 3342. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-06 01:19:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T01:19:34Z.


Progress report (fe98276 → ebe0515)

📈 System libraries: 81.66% (+0.06%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceAppContent sceAppContentAddcontMount
libSceAppContent sceAppContentAddcontUnmount
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6007348408 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/796#issuecomment-6007348408). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T01:19:34Z. --- <!-- progress-report --> ### Progress report (fe98276 → ebe0515) 📈 **System libraries**: 81.66% (+0.06%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceAppContent | `sceAppContentAddcontMount` | | libSceAppContent | `sceAppContentAddcontUnmount` | </details>
github-actions[bot] commented 2026-10-06 02:13:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T02:13:52Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#724 docs/dev/TechnicalDebt.md L128
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6007939514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/796#issuecomment-6007939514). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T02:13:52Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #724 | `docs/dev/TechnicalDebt.md` [L128](https://github.com/boykopovar/AnyPS5/blob/746d3c68977265ba75dd08ca6b478c6c07be9c24/docs/dev/TechnicalDebt.md#L128) | | |
oneandonlydean commented 2026-10-06 03:27:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T03:27:15Z.


Thanks. Reporting NOT_FOUND from sceAppContentAddcontMount when no add-content is installed matches what I'd expect, and leaving the mount point untouched is a good detail to test.

A question on sceAppContentAddcontUnmount: since no mount point is ever handed out, would SCE_APP_CONTENT_ERROR_NOT_MOUNTED (0x80D90004) describe that case better than NOT_FOUND (0x80D90005)? NOT_FOUND reads as "no such content", while the unmount argument is a mount point that was never mounted. If you have a source for NOT_FOUND on unmount, a note in the TechnicalDebt line would settle it; otherwise the unmount return code is an assumption worth recording there too.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6008721820 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/796#issuecomment-6008721820). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T03:27:15Z. --- Thanks. Reporting `NOT_FOUND` from `sceAppContentAddcontMount` when no add-content is installed matches what I'd expect, and leaving the mount point untouched is a good detail to test. A question on `sceAppContentAddcontUnmount`: since no mount point is ever handed out, would `SCE_APP_CONTENT_ERROR_NOT_MOUNTED` (0x80D90004) describe that case better than `NOT_FOUND` (0x80D90005)? `NOT_FOUND` reads as "no such content", while the unmount argument is a mount point that was never mounted. If you have a source for `NOT_FOUND` on unmount, a note in the TechnicalDebt line would settle it; otherwise the unmount return code is an assumption worth recording there too.
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!796
No description provided.