Skip to content

feat(libSceSystemService): implement Disable/ReenableMediaPlay - #1269

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
st44rplatinum:feat/systemservice-mediaplay
Oct 9, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
st44rplatinum:feat/systemservice-mediaplay

Conversation

@st44rplatinum

@st44rplatinum st44rplatinum commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 8, 2026
@st44rplatinum

Copy link
Copy Markdown
Contributor Author

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
st44rplatinum force-pushed the feat/systemservice-mediaplay branch from 47008df to 7894cda Compare October 8, 2026 15:37
@st44rplatinum

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor

@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.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 8, 2026
@st44rplatinum

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Progress report (4b6ab6b → 3599d41)

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

✅ 2 implemented
Library Name
libSceSystemService sceSystemServiceDisableMediaPlay
libSceSystemService sceSystemServiceReenableMediaPlay

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants