fix(libSceNpManager): accept sceNpSetContentRestriction with null check #2829

Closed
danzaio wants to merge 1 commit from upstream-pr/2829 into main
danzaio commented 2026-10-10 16:15:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-10T16:15:01Z.


PR body draft — fix/np-content-restriction

STATUS: open. Needs Dan's 1-line sentence (edit into body before review).

What

[DAN: 1 frase tua aqui, obrigatória pelo CONTRIBUTING]

sceNpSetContentRestriction threw NotImplemented on every call, so any title that sets content restrictions aborts the process. A null restriction is SCE_NP_ERROR_INVALID_ARGUMENT, as in the other NpManager calls, and anything else reports success. Nothing is stored because no user is signed in to PSN.

Tested

Windows, MinGW 15.2, Release. guest_np_manager covers both paths: fails without the fix, passes with it. Conventions check passes.
Not run: Linux.

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:4812642265 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2829). Originally posted by [danzaio](https://github.com/danzaio) on 2026-10-10T16:15:01Z. --- # PR body draft — fix/np-content-restriction STATUS: open. Needs Dan's 1-line sentence (edit into body before review). ### What [DAN: 1 frase tua aqui, obrigatória pelo CONTRIBUTING] `sceNpSetContentRestriction` threw `NotImplemented` on every call, so any title that sets content restrictions aborts the process. A null restriction is `SCE_NP_ERROR_INVALID_ARGUMENT`, as in the other NpManager calls, and anything else reports success. Nothing is stored because no user is signed in to PSN. ### Tested Windows, MinGW 15.2, Release. `guest_np_manager` covers both paths: fails without the fix, passes with it. Conventions check passes. Not run: Linux. ### 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-10 16:15:10 +00:00 (Migrated from github.com)

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


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099571563 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2829#issuecomment-6099571563). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T16:15:10Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
github-actions[bot] commented 2026-10-10 16:15:23 +00:00 (Migrated from github.com)

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


Progress report (57f96fd → 86b4c1e)

📈 System libraries: 84.55% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpManager sceNpSetContentRestriction
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099573524 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2829#issuecomment-6099573524). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T16:15:23Z. --- <!-- progress-report --> ### Progress report (57f96fd → 86b4c1e) 📈 **System libraries**: 84.55% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpManager | `sceNpSetContentRestriction` | </details>

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