feat(libSceContentDelete): implement content delete exports #4130

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/4130 into main
MarcZX10 commented 2026-10-11 23:49:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T23:49:38Z.


What

Carries screamm's ContentDelete implementation from issue #4109, preserving the original feature commit author. Implements sceContentDeleteById and sceContentDeleteByPath with the signatures supported by Orbital and SharpProspero. Since this emulator has no host content library, calls after initialization throw an explicit diagnostic for missing content rather than returning false success; null paths and calls outside the initialized lifetime are also handled explicitly. Adds regression coverage and moves sceContentDeleteById out of the generic unimplemented test.

This carries only the ContentDelete commit; it does not include the separate AudioOut2 change in #4109. PR #3724 has an adjacent change to the same test CMake file, so merging both may require reconciling their test link lists. The implementations are independent.

Tested

  • Linux x86-64, GCC 12.2, Release/Ninja: built guest_content_delete_tests and guest_content_unimplemented_tests; CTest guest_content_delete and guest_content_unimplemented passed (2/2).
  • tools/check_conventions.py --base upstream/main and git diff --check passed.
  • Windows was not run locally; CI will verify it.

Checklist

  • Based on current main; no other open PR implements these functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in TechnicalDebt
  • No notes or investigation files added to the repository
  • No new third-party code
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823308601 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4130). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T23:49:38Z. --- ### What Carries screamm's ContentDelete implementation from issue #4109, preserving the original feature commit author. Implements `sceContentDeleteById` and `sceContentDeleteByPath` with the signatures supported by Orbital and SharpProspero. Since this emulator has no host content library, calls after initialization throw an explicit diagnostic for missing content rather than returning false success; null paths and calls outside the initialized lifetime are also handled explicitly. Adds regression coverage and moves `sceContentDeleteById` out of the generic unimplemented test. This carries only the ContentDelete commit; it does not include the separate AudioOut2 change in #4109. PR #3724 has an adjacent change to the same test CMake file, so merging both may require reconciling their test link lists. The implementations are independent. ### Tested - Linux x86-64, GCC 12.2, Release/Ninja: built `guest_content_delete_tests` and `guest_content_unimplemented_tests`; CTest `guest_content_delete` and `guest_content_unimplemented` passed (2/2). - `tools/check_conventions.py --base upstream/main` and `git diff --check` passed. - Windows was not run locally; CI will verify it. ### Checklist - [x] Based on current `main`; no other open PR implements these functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes or investigation files added to the repository - [x] No new third-party code - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-11 23:49:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T23:49:48Z.


Local validation on current main (Linux x86-64, GCC 12.2, Release/Ninja): built guest_content_delete_tests and guest_content_unimplemented_tests; both guest_content_delete and guest_content_unimplemented passed (2/2). tools/check_conventions.py --base upstream/main and git diff --check also passed. The carried feature commit retains screamm as its original author.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115279791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4130#issuecomment-6115279791). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T23:49:48Z. --- Local validation on current main (Linux x86-64, GCC 12.2, Release/Ninja): built `guest_content_delete_tests` and `guest_content_unimplemented_tests`; both `guest_content_delete` and `guest_content_unimplemented` passed (2/2). `tools/check_conventions.py --base upstream/main` and `git diff --check` also passed. The carried feature commit retains screamm as its original author.
github-actions[bot] commented 2026-10-11 23:53:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:53:50Z.


Progress report (1acfa7f → 32864c6)

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

✅ 2 implemented
Library Name
libSceContentDelete sceContentDeleteById
libSceContentDelete sceContentDeleteByPath
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115310979 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4130#issuecomment-6115310979). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T23:53:50Z. --- <!-- progress-report --> ### Progress report (1acfa7f → 32864c6) 📈 **System libraries**: 86.42% (+0.06%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceContentDelete | `sceContentDeleteById` | | libSceContentDelete | `sceContentDeleteByPath` | </details>
oneandonlydean commented 2026-10-13 00:58:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:58:25Z.


Closing: both functions are already exported on main and still throw on every call here, so nothing is implemented and no title gets further. Reopen when a title calls one and the console's answer is known.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135729567 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4130#issuecomment-6135729567). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T00:58:25Z. --- Closing: both functions are already exported on main and still throw on every call here, so nothing is implemented and no title gets further. Reopen when a title calls one and the console's answer is known.

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