feat(libSceAppContent): implement sceAppContentGetAddcontInfo and GetAddcontInfoList #835

Merged
adriadam10 merged 1 commit from upstream-pr/835 into main 2026-10-07 16:25:32 +00:00
adriadam10 commented 2026-10-06 08:21:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-06T08:21:41Z.


What

Implements two libSceAppContent exports that main doesn't declare yet, using the same no-add-content model as the existing sceAppContentAddcontMount/AddcontUnmount (nothing is installed):

  • sceAppContentGetAddcontInfo(serviceLabel, entitlementLabel, info): null label or info → SCE_APP_CONTENT_ERROR_PARAMETER (0x80D90002); otherwise SCE_APP_CONTENT_ERROR_DRM_NO_ENTITLEMENT (0x80D90007), info untouched. Same as shadPS4, fpPS4 and prosper when the label isn't found.
  • sceAppContentGetAddcontInfoList(serviceLabel, list, listNum, hitNum): a count query (null list or listNum == 0) needs hitNum, else PARAMETER; on a list call hitNum is optional. *hitNum = 0, returns 0, nothing written to list. Parameter rules follow shadPS4 and prosper (both agree); fpPS4 writes hitNum = 0 without parameter checks.

Error values match KytyPS5, shadPS4, fpPS4 and prosper. SceAppContentAddcontInfo (label + u32 status, 24 bytes) from SharpProspero; no field is written here.
TechnicalDebt: the existing "Additional content" line now also covers these two.

Tested

Linux, guest_appcontent extended: GetAddcontInfo returns DRM_NO_ENTITLEMENT with info untouched, both null-pointer errors; GetAddcontInfoList count query with null list / zero count, list call with and without hitNum, hitNum set to 0, list untouched, the three missing-hitNum count-query errors. Each check fails when its piece is mutated (5 mutants). On main the test doesn't link (the exports don't exist). Release build + guest_ ctest green.

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:4756102929 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/835). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-06T08:21:41Z. --- ### What Implements two libSceAppContent exports that `main` doesn't declare yet, using the same no-add-content model as the existing `sceAppContentAddcontMount`/`AddcontUnmount` (nothing is installed): - `sceAppContentGetAddcontInfo(serviceLabel, entitlementLabel, info)`: null label or info → `SCE_APP_CONTENT_ERROR_PARAMETER` (0x80D90002); otherwise `SCE_APP_CONTENT_ERROR_DRM_NO_ENTITLEMENT` (0x80D90007), `info` untouched. Same as shadPS4, fpPS4 and prosper when the label isn't found. - `sceAppContentGetAddcontInfoList(serviceLabel, list, listNum, hitNum)`: a count query (null `list` or `listNum == 0`) needs `hitNum`, else `PARAMETER`; on a list call `hitNum` is optional. `*hitNum = 0`, returns 0, nothing written to `list`. Parameter rules follow shadPS4 and prosper (both agree); fpPS4 writes `hitNum = 0` without parameter checks. Error values match KytyPS5, shadPS4, fpPS4 and prosper. `SceAppContentAddcontInfo` (label + `u32` status, 24 bytes) from SharpProspero; no field is written here. TechnicalDebt: the existing "Additional content" line now also covers these two. ### Tested Linux, `guest_appcontent` extended: GetAddcontInfo returns `DRM_NO_ENTITLEMENT` with `info` untouched, both null-pointer errors; GetAddcontInfoList count query with null list / zero count, list call with and without `hitNum`, `hitNum` set to 0, list untouched, the three missing-`hitNum` count-query errors. Each check fails when its piece is mutated (5 mutants). On `main` the test doesn't link (the exports don't exist). Release build + `guest_` ctest green. ### 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 08:22:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T08:22:04Z.


Progress report (2b8f0b2 → 5b331ed)

📈 System libraries: 86.0% (+0.01%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceAppContent sceAppContentGetAddcontInfo
libSceAppContent sceAppContentGetAddcontInfoList
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6012318546 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/835#issuecomment-6012318546). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T08:22:04Z. --- <!-- progress-report --> ### Progress report (2b8f0b2 → 5b331ed) 📈 **System libraries**: 86.0% (+0.01%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceAppContent | `sceAppContentGetAddcontInfo` | | libSceAppContent | `sceAppContentGetAddcontInfoList` | </details>
oneandonlydean commented 2026-10-06 21:24:15 +00:00 (Migrated from github.com)

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


Thanks, this is ready to merge, but it now conflicts with main in docs/dev/TechnicalDebt.md after the last batch landed. Could you rebase onto main? I'll merge once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025726410 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/835#issuecomment-6025726410). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T21:24:15Z. --- Thanks, this is ready to merge, but it now conflicts with main in `docs/dev/TechnicalDebt.md` after the last batch landed. Could you rebase onto main? I'll merge once CI is green.
adriadam10 commented 2026-10-07 16:10:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T16:10:25Z.


Rebased onto main (TechnicalDebt conflict only: kept the extended "Additional content" line next to the new sceNetSendmsg one). Build + full ctest green locally, guest_appcontent included; merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6041884089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/835#issuecomment-6041884089). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T16:10:25Z. --- Rebased onto main (TechnicalDebt conflict only: kept the extended "Additional content" line next to the new sceNetSendmsg one). Build + full ctest green locally, `guest_appcontent` included; merging once CI is green.
github-actions[bot] commented 2026-10-07 16:25:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T16:25:06Z.


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
#946 core/libs/tests/GuestAppContent.cpp L26
docs/dev/TechnicalDebt.md L205
#995 core/libs/prx/libSceAppContent/Export.cpp L13-14
#1121 docs/dev/TechnicalDebt.md L205
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6042139973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/835#issuecomment-6042139973). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-07T16:25:06Z. --- <!-- 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 | |---|---|---|---| | #946 | `core/libs/tests/GuestAppContent.cpp` [L26](https://github.com/boykopovar/AnyPS5/blob/4b16995d91d53c5e8b31e9efd714c44f753c4b8d/core/libs/tests/GuestAppContent.cpp#L26)<br>`docs/dev/TechnicalDebt.md` [L205](https://github.com/boykopovar/AnyPS5/blob/4b16995d91d53c5e8b31e9efd714c44f753c4b8d/docs/dev/TechnicalDebt.md#L205) | | | | #995 | `core/libs/prx/libSceAppContent/Export.cpp` [L13-14](https://github.com/boykopovar/AnyPS5/blob/4b16995d91d53c5e8b31e9efd714c44f753c4b8d/core/libs/prx/libSceAppContent/Export.cpp#L13-L14) | | | | #1121 | `docs/dev/TechnicalDebt.md` [L205](https://github.com/boykopovar/AnyPS5/blob/4b16995d91d53c5e8b31e9efd714c44f753c4b8d/docs/dev/TechnicalDebt.md#L205) | | |
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!835
No description provided.