Skip to content

feat(libSceAppContent): implement sceAppContentAddcontEnqueueDownload - #946

Closed
Kikoarl wants to merge 1 commit into
boykopovar:mainfrom
Kikoarl:feat/prx-appcontent-enqueue-download
Closed

Kikoarl wants to merge 1 commit into
boykopovar:mainfrom
Kikoarl:feat/prx-appcontent-enqueue-download

Conversation

@Kikoarl

@Kikoarl Kikoarl commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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

A few points:

@Kikoarl
Kikoarl force-pushed the feat/prx-appcontent-enqueue-download branch from 7286a5d to 6f553bf Compare October 6, 2026 21:28
@Kikoarl

Kikoarl commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@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 feat(libSceAppContent): implement sceAppContentGetAddcontInfo and GetAddcontInfoList #835 lands first, I will happily rebase onto main to sequence both test blocks in GuestAppContent.cpp.

@Kikoarl
Kikoarl force-pushed the feat/prx-appcontent-enqueue-download branch from 6f553bf to 32bb884 Compare October 6, 2026 21:45
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 7, 2026
@Kikoarl
Kikoarl force-pushed the feat/prx-appcontent-enqueue-download branch from 32bb884 to 9885b39 Compare October 7, 2026 10:25
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 7, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 7, 2026
@Kikoarl
Kikoarl force-pushed the feat/prx-appcontent-enqueue-download branch from 9885b39 to d3e5d19 Compare October 7, 2026 17:11
@Kikoarl

Kikoarl commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

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

@Kikoarl
Kikoarl force-pushed the feat/prx-appcontent-enqueue-download branch from d3e5d19 to a83de26 Compare October 7, 2026 21:27
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 7, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs needs rebase Conflicts with main, rebase needed prx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants