feat(libSceAppContent): implement sceAppContentAddcontEnqueueDownload #946

Closed
Kikoarl wants to merge 1 commit from upstream-pr/946 into main
Kikoarl commented 2026-10-06 19:42:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T19:42:11Z.


What

Identifies and implements sceAppContentAddcontEnqueueDownload (NID 7gxh+5QubhY) in libSceAppContent, replacing the placeholder sceAppContentUnknown00.

  • Validates entitlement_label (returning SCE_APP_CONTENT_ERROR_PARAMETER if null).
  • Returns SCE_APP_CONTENT_ERROR_NOT_FOUND as no offline DLC entitlement package is queued, consistent with sceAppContentAddcontMount.
  • Completes libSceAppContent to 9/9 functions (100%).
  • Documents the inferred return code and offline add-content behaviour in docs/dev/TechnicalDebt.md.

Tested

Linux x86_64, GCC Release build, ctest guest_appcontent passes. GuestAppContent.cpp tests parameter validation with a null label pointer and verifying SCE_APP_CONTENT_ERROR_NOT_FOUND on a valid entitlement label.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4763801705 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T19:42:11Z. --- ### What Identifies and implements `sceAppContentAddcontEnqueueDownload` (NID `7gxh+5QubhY`) in `libSceAppContent`, replacing the placeholder `sceAppContentUnknown00`. - Validates `entitlement_label` (returning `SCE_APP_CONTENT_ERROR_PARAMETER` if null). - Returns `SCE_APP_CONTENT_ERROR_NOT_FOUND` as no offline DLC entitlement package is queued, consistent with `sceAppContentAddcontMount`. - Completes `libSceAppContent` to 9/9 functions (100%). - Documents the inferred return code and offline add-content behaviour in `docs/dev/TechnicalDebt.md`. ### Tested Linux x86_64, GCC Release build, ctest `guest_appcontent` passes. `GuestAppContent.cpp` tests parameter validation with a null label pointer and verifying `SCE_APP_CONTENT_ERROR_NOT_FOUND` on a valid entitlement label. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-06 19:42:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T19:42:36Z.


Progress report (6c48ace → a83de26)

📈 System libraries: 86.18% (+0.04%, +1 implemented, -1 removed functions)

✅ 1 implemented
Library Name
libSceAppContent sceAppContentAddcontEnqueueDownload
🗑️ 1 removed
Library Name
libSceAppContent sceAppContentUnknown00
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6024113923 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946#issuecomment-6024113923). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T19:42:36Z. --- <!-- progress-report --> ### Progress report (6c48ace → a83de26) 📈 **System libraries**: 86.18% (+0.04%, +1 implemented, -1 removed functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAppContent | `sceAppContentAddcontEnqueueDownload` | </details> <details> <summary>🗑️ 1 removed</summary> | Library | Name | | - | - | | libSceAppContent | `sceAppContentUnknown00` | </details>
oneandonlydean commented 2026-10-06 21:20:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T21:20:58Z.


Thanks, the identification matches (7gxh+5QubhY is sceAppContentAddcontEnqueueDownload), and the null check plus NOT_FOUND follows the offline behaviour of sceAppContentAddcontMount.

A few points:

  • The "Additional content" entry under Functional in docs/dev/TechnicalDebt.md lists what each add-content function answers. Could you add sceAppContentAddcontEnqueueDownload there (null label PARAMETER, every other label NOT_FOUND)?
  • Where does NOT_FOUND come from for this one? #835 answers DRM_NO_ENTITLEMENT (0x80D90007) from sceAppContentGetAddcontInfo for the same "nothing installed" state, so it would help to say which code the console returns for an enqueue with no entitlement. If it isn't known, an "Unknown function info" line recording the inferred return value would cover it.
  • The description says "Depends on: #835", but the branch is based on main and conflicts with #835 in core/libs/tests/GuestAppContent.cpp. If it really depends on #835, rebasing onto it (or onto main after #835 lands) would sort that out; if it doesn't, the line can go.
  • Which title calls sceAppContentAddcontEnqueueDownload? PPSA21564 doesn't import it, and the description doesn't name one.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025676643 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946#issuecomment-6025676643). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T21:20:58Z. --- Thanks, the identification matches (`7gxh+5QubhY` is `sceAppContentAddcontEnqueueDownload`), and the null check plus `NOT_FOUND` follows the offline behaviour of `sceAppContentAddcontMount`. A few points: - The "Additional content" entry under Functional in `docs/dev/TechnicalDebt.md` lists what each add-content function answers. Could you add `sceAppContentAddcontEnqueueDownload` there (null label `PARAMETER`, every other label `NOT_FOUND`)? - Where does `NOT_FOUND` come from for this one? #835 answers `DRM_NO_ENTITLEMENT` (`0x80D90007`) from `sceAppContentGetAddcontInfo` for the same "nothing installed" state, so it would help to say which code the console returns for an enqueue with no entitlement. If it isn't known, an "Unknown function info" line recording the inferred return value would cover it. - The description says "Depends on: #835", but the branch is based on `main` and conflicts with #835 in `core/libs/tests/GuestAppContent.cpp`. If it really depends on #835, rebasing onto it (or onto `main` after #835 lands) would sort that out; if it doesn't, the line can go. - Which title calls `sceAppContentAddcontEnqueueDownload`? PPSA21564 doesn't import it, and the description doesn't name one.
Kikoarl commented 2026-10-06 21:30:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T21:30:39Z.


@oneandonlydean Thanks for the feedback. I've updated the PR accordingly:

  • Added sceAppContentAddcontEnqueueDownload under Functional (Additional content) in docs/dev/TechnicalDebt.md, noting that a null label returns PARAMETER and any other label returns NOT_FOUND.
  • Recorded the inferred return code under Unknown function info in docs/dev/TechnicalDebt.md, noting that NOT_FOUND follows the offline model of sceAppContentAddcontMount and has not been confirmed on hardware or a specific title.
  • Regarding the title: this function was identified from Sony PS5 symbol tables/NID mapping (7gxh+5QubhY -> sceAppContentAddcontEnqueueDownload) to achieve full 9/9 export coverage (100%) in libSceAppContent, rather than from a specific title dump.
  • Reverted description back to Depends on: none since the implementation is logically independent. If #835 lands first, I will happily rebase onto main to sequence both test blocks in GuestAppContent.cpp.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025821272 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946#issuecomment-6025821272). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T21:30:39Z. --- @oneandonlydean Thanks for the feedback. I've updated the PR accordingly: - Added `sceAppContentAddcontEnqueueDownload` under **Functional** (`Additional content`) in `docs/dev/TechnicalDebt.md`, noting that a null label returns `PARAMETER` and any other label returns `NOT_FOUND`. - Recorded the inferred return code under **Unknown function info** in `docs/dev/TechnicalDebt.md`, noting that `NOT_FOUND` follows the offline model of `sceAppContentAddcontMount` and has not been confirmed on hardware or a specific title. - Regarding the title: this function was identified from Sony PS5 symbol tables/NID mapping (`7gxh+5QubhY` -> `sceAppContentAddcontEnqueueDownload`) to achieve full 9/9 export coverage (100%) in `libSceAppContent`, rather than from a specific title dump. - Reverted description back to `Depends on: none` since the implementation is logically independent. If #835 lands first, I will happily rebase onto `main` to sequence both test blocks in `GuestAppContent.cpp`.
Kikoarl commented 2026-10-07 17:13:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-07T17:13:34Z.


@oneandonlydean Rebased on latest main now that #835 has landed, sequencing the tests in GuestAppContent.cpp and resolving all conflicts cleanly. Ready for review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6042939790 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946#issuecomment-6042939790). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-07T17:13:34Z. --- @oneandonlydean Rebased on latest main now that #835 has landed, sequencing the tests in `GuestAppContent.cpp` and resolving all conflicts cleanly. Ready for review.
oneandonlydean commented 2026-10-08 02:49:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T02:49:33Z.


Closing: sceAppContentAddcontEnqueueDownload is only known from an import list, it starts a user-requested DLC download rather than a boot-time call, and no log shows a title calling it on main. If a title stops here, please comment with the title ID and the log line, and it can be reopened.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6051159431 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/946#issuecomment-6051159431). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T02:49:33Z. --- Closing: `sceAppContentAddcontEnqueueDownload` is only known from an import list, it starts a user-requested DLC download rather than a boot-time call, and no log shows a title calling it on main. If a title stops here, please comment with the title ID and the log line, and it can be reopened.

Pull request closed

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!946
No description provided.