feat(libSceSystemService): implement Disable/ReenableMediaPlay #1269

Merged
st44rplatinum merged 2 commits from upstream-pr/1269 into main 2026-10-09 09:40:55 +00:00
st44rplatinum commented 2026-10-07 20:36:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-07T20:36:41Z.


What

Implements sceSystemServiceDisableMediaPlay and sceSystemServiceReenableMediaPlay, which threw before. Both return SYSTEM_SERVICE_OK and do nothing, like sceSystemServiceDisableMusicPlayer/ReenableMusicPlayer: the host has no system media playback to disable. Added to the libSceSystemService line under silent stubs in TechnicalDebt.

Tested

Windows 10, WinLibs GCC 15.2.0 (posix-ucrt r7): guest_system_service now checks that both calls return OK twice in a row; passes. tools/check_conventions.py --base origin/main passes. No title run.

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:4778177420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269). Originally posted by [st44rplatinum](https://github.com/st44rplatinum) on 2026-10-07T20:36:41Z. --- ### What Implements `sceSystemServiceDisableMediaPlay` and `sceSystemServiceReenableMediaPlay`, which threw before. Both return `SYSTEM_SERVICE_OK` and do nothing, like `sceSystemServiceDisableMusicPlayer`/`ReenableMusicPlayer`: the host has no system media playback to disable. Added to the libSceSystemService line under silent stubs in TechnicalDebt. ### Tested Windows 10, WinLibs GCC 15.2.0 (posix-ucrt r7): `guest_system_service` now checks that both calls return OK twice in a row; passes. `tools/check_conventions.py --base origin/main` passes. No title run. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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
oneandonlydean commented 2026-10-08 03:26:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:26:05Z.


Which title calls sceSystemServiceDisableMediaPlay or ReenableMediaPlay on main? Silent stubs go in when a title reaches them; with the title ID and the NotImplemented line it stops at this can go in (and the two "unknown signature" lines for them in docs/dev/TechnicalDebt.md should come out). Otherwise I'll close it until one does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6051542879 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6051542879). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T03:26:05Z. --- Which title calls `sceSystemServiceDisableMediaPlay` or `ReenableMediaPlay` on main? Silent stubs go in when a title reaches them; with the title ID and the `NotImplemented` line it stops at this can go in (and the two "unknown signature" lines for them in `docs/dev/TechnicalDebt.md` should come out). Otherwise I'll close it until one does.
st44rplatinum commented 2026-10-08 11:11:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-08T11:11:54Z.


Which title calls sceSystemServiceDisableMediaPlay or ReenableMediaPlay on main? Silent stubs go in when a title reaches them; with the title ID and the NotImplemented line it stops at this can go in (and the two "unknown signature" lines for them in docs/dev/TechnicalDebt.md should come out). Otherwise I'll close it until one does.

Yes, fine to close until one does reach. no title I can run at the moment

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6058593936 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6058593936). Originally posted by [st44rplatinum](https://github.com/st44rplatinum) on 2026-10-08T11:11:54Z. --- > Which title calls `sceSystemServiceDisableMediaPlay` or `ReenableMediaPlay` on main? Silent stubs go in when a title reaches them; with the title ID and the `NotImplemented` line it stops at this can go in (and the two "unknown signature" lines for them in `docs/dev/TechnicalDebt.md` should come out). Otherwise I'll close it until one does. Yes, fine to close until one does reach. no title I can run at the moment
st44rplatinum commented 2026-10-08 15:38:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-08T15:38:32Z.


Reopening: #1616 reports that Horizon Forbidden West (PPSA01521) reaches these. Its integration build needs a local equivalent of this PR to get to the menu. @tototomate123, could you confirm which of the two it stops at (the NotImplemented line), and whether it passes any arguments? Rebased on main; I'll remove the two "unknown signature" lines for them from TechnicalDebt once that's confirmed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6063495359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6063495359). Originally posted by [st44rplatinum](https://github.com/st44rplatinum) on 2026-10-08T15:38:32Z. --- Reopening: #1616 reports that Horizon Forbidden West (PPSA01521) reaches these. Its integration build needs a local equivalent of this PR to get to the menu. @tototomate123, could you confirm which of the two it stops at (the `NotImplemented` line), and whether it passes any arguments? Rebased on main; I'll remove the two "unknown signature" lines for them from TechnicalDebt once that's confirmed.
tototomate123 commented 2026-10-08 15:54:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tototomate123 on 2026-10-08T15:54:48Z.


@st44rplatinum the abort is what(): sceSystemServiceDisableMediaPlay not implemented, with NotImplemented_nid_no_patch -> sceSystemServiceDisableMediaPlay in the stack. Returning success lets startup continue to the menu/loading UI.
Both imports are present. The games engine wrappers at guest offsets 0x3251a0 (Disable) and 0x3251b0 (Reenable) tail-jump directly to their imports, without preparing library-specific arguments. The calling engine object's this pointer remains in RDI. I have not independently captured an abort in Reenable.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6063794685 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6063794685). Originally posted by [tototomate123](https://github.com/tototomate123) on 2026-10-08T15:54:48Z. --- @st44rplatinum the abort is `what(): sceSystemServiceDisableMediaPlay not implemented`, with `NotImplemented_nid_no_patch` -> `sceSystemServiceDisableMediaPlay` in the stack. Returning success lets startup continue to the menu/loading UI. Both imports are present. The games engine wrappers at guest offsets `0x3251a0` (Disable) and `0x3251b0` (Reenable) tail-jump directly to their imports, without preparing library-specific arguments. The calling engine object's `this` pointer remains in RDI. I have not independently captured an abort in Reenable.
st44rplatinum commented 2026-10-08 19:46:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-08T19:46:17Z.


Thanks @tototomate123! @oneandonlydean: PPSA01521 (Horizon Forbidden West) aborts at start-up with sceSystemServiceDisableMediaPlay not implemented (NotImplemented_nid_no_patch in the stack); returning success lets it continue to the menu/loading UI. Its engine wrappers tail-jump to both imports without preparing arguments, so I removed the two "unknown signature" lines and recorded the title on the silent-stub line. An abort in Reenable wasn't captured separately

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067762406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6067762406). Originally posted by [st44rplatinum](https://github.com/st44rplatinum) on 2026-10-08T19:46:17Z. --- Thanks @tototomate123! @oneandonlydean: PPSA01521 (Horizon Forbidden West) aborts at start-up with `sceSystemServiceDisableMediaPlay not implemented` (`NotImplemented_nid_no_patch` in the stack); returning success lets it continue to the menu/loading UI. Its engine wrappers tail-jump to both imports without preparing arguments, so I removed the two "unknown signature" lines and recorded the title on the silent-stub line. An abort in Reenable wasn't captured separately
github-actions[bot] commented 2026-10-09 08:55:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T08:55:58Z.


Progress report (4b6ab6b → 3599d41)

📈 System libraries: 84.83% (+0.07%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceSystemService sceSystemServiceDisableMediaPlay
libSceSystemService sceSystemServiceReenableMediaPlay
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077723053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1269#issuecomment-6077723053). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T08:55:58Z. --- <!-- progress-report --> ### Progress report (4b6ab6b → 3599d41) 📈 **System libraries**: 84.83% (+0.07%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceSystemService | `sceSystemServiceDisableMediaPlay` | | libSceSystemService | `sceSystemServiceReenableMediaPlay` | </details>
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!1269
No description provided.