feat(prx): complete stubs across 30 system, audio, and utility libraries #9826

Closed
Delciob wants to merge 1 commit from upstream-pr/9826 into main
Delciob commented 2026-10-22 16:20:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Delciob on 2026-10-22T16:20:18Z.


What

Complete stubs across 30 system, audio, and utility libraries.

Tested

Windows 10 x64, system libraries build.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: no
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4970603193 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9826). Originally posted by [Delciob](https://github.com/Delciob) on 2026-10-22T16:20:18Z. --- ### What Complete stubs across 30 system, audio, and utility libraries. ### Tested Windows 10 x64, system libraries build. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: no
MarcZX10 commented 2026-10-22 16:44:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:44:18Z.

Review: CHANGES_REQUESTED


I reviewed head 6307b695e49b38ac769a772e08dac7e3d0ac2382. This removes NotImplemented_nid_no_patch from 31 files across 30 libraries, but the PR description only says the system libraries build. Several changes turn unsupported operations into success without implementing them:

  • sceNpPollAsync, sceNpRegisterGamePresenceCallback, sceNpSetContentRestriction, and sceNpGetSandboxInfo now return/implicitly yield success without completing requests, storing callbacks, or applying restrictions.
  • sceContentExportFromData, sceContentExportFromFile, and sceContentExportFromFileWithThumbnail return success without exporting content.
  • sceSaveDataCancel and sceSaveDataPrepareForTransferring return success without cancellation/transfer behavior.
  • sceBluetoothHidGetDeviceName, GetInputReport, and SetOutputReport are no-argument success stubs.
  • sceVoiceWriteToIPort drops the buffer and reports success; sceVoiceEnableChat/DisableChat do nothing despite the documented missing backend.
  • sceNpTrophy2GetRewardIcon returns success without setting the size or writing an icon; its debt entry says callers query size then fetch the unknown icon data.
  • sceSystemServiceOpenTournamentOccurrence duplicates the same export in open PR #9770, with the overlap bot already identifying it.

These violate the rule that functions must implement behavior or throw, and several make existing technical-debt entries inaccurate. Please keep unsupported paths throwing until behavior is evidenced and implemented, update debt entries when behavior changes, and remove the duplicate #9770 export. This PR spans unrelated library topics and should be split to follow the one-topic-per-PR rule. Also, several unimplemented branches replace NotImplemented_nid_no_patch with direct std::runtime_error, contrary to the prescribed unimplemented-export convention.

python3 tools/check_conventions.py --base upstream/main and git diff --check pass. No focused tests were added or described; I did not run a product build. The overlap check against current main reports merge conflicts in several touched files, and the exact sceSystemServiceOpenTournamentOccurrence overlap with #9770 needs resolving.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617717053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9826#pullrequestreview-5617717053). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:44:18Z. **Review:** CHANGES_REQUESTED --- I reviewed head `6307b695e49b38ac769a772e08dac7e3d0ac2382`. This removes `NotImplemented_nid_no_patch` from 31 files across 30 libraries, but the PR description only says the system libraries build. Several changes turn unsupported operations into success without implementing them: - `sceNpPollAsync`, `sceNpRegisterGamePresenceCallback`, `sceNpSetContentRestriction`, and `sceNpGetSandboxInfo` now return/implicitly yield success without completing requests, storing callbacks, or applying restrictions. - `sceContentExportFromData`, `sceContentExportFromFile`, and `sceContentExportFromFileWithThumbnail` return success without exporting content. - `sceSaveDataCancel` and `sceSaveDataPrepareForTransferring` return success without cancellation/transfer behavior. - `sceBluetoothHidGetDeviceName`, `GetInputReport`, and `SetOutputReport` are no-argument success stubs. - `sceVoiceWriteToIPort` drops the buffer and reports success; `sceVoiceEnableChat`/`DisableChat` do nothing despite the documented missing backend. - `sceNpTrophy2GetRewardIcon` returns success without setting the size or writing an icon; its debt entry says callers query size then fetch the unknown icon data. - `sceSystemServiceOpenTournamentOccurrence` duplicates the same export in open PR #9770, with the overlap bot already identifying it. These violate the rule that functions must implement behavior or throw, and several make existing technical-debt entries inaccurate. Please keep unsupported paths throwing until behavior is evidenced and implemented, update debt entries when behavior changes, and remove the duplicate #9770 export. This PR spans unrelated library topics and should be split to follow the one-topic-per-PR rule. Also, several unimplemented branches replace `NotImplemented_nid_no_patch` with direct `std::runtime_error`, contrary to the prescribed unimplemented-export convention. `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` pass. No focused tests were added or described; I did not run a product build. The overlap check against current `main` reports merge conflicts in several touched files, and the exact `sceSystemServiceOpenTournamentOccurrence` overlap with #9770 needs resolving.
MarcZX10 commented 2026-10-22 17:21:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T17:21:34Z.

Review: CHANGES_REQUESTED


The broad stub conversion conflicts with the repository contract in CONTRIBUTING.md: “Every function either does exactly what it is supposed to or throws,” and an unimplemented export must call NotImplemented_nid_no_patch; silent stubs are allowed only when they unblock a title and affect only UI, with a debt entry. This diff removes that guard from many unrelated exports and silently returns success, including sceAudioOutDeviceIdOpen, sceBluetoothHidGetInputReport, sceContentExportFromData, and JSON callback setters. These are not demonstrated as UI-only or inert, and the PR reports only a general Windows build rather than per-export behavioral evidence. Please keep the throw/debt behavior for unverified exports and make any title-backed silent stub narrowly scoped with the required debt record and regression test. The overlap check also reports sceSystemServiceOpenTournamentOccurrence shared with #9770; resolve that with its author and record the agreed order in Depends on before changing that export.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5618161105 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9826#pullrequestreview-5618161105). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T17:21:34Z. **Review:** CHANGES_REQUESTED --- The broad stub conversion conflicts with the repository contract in `CONTRIBUTING.md`: “Every function either does exactly what it is supposed to or throws,” and an unimplemented export must call `NotImplemented_nid_no_patch`; silent stubs are allowed only when they unblock a title and affect only UI, with a debt entry. This diff removes that guard from many unrelated exports and silently returns success, including `sceAudioOutDeviceIdOpen`, `sceBluetoothHidGetInputReport`, `sceContentExportFromData`, and JSON callback setters. These are not demonstrated as UI-only or inert, and the PR reports only a general Windows build rather than per-export behavioral evidence. Please keep the throw/debt behavior for unverified exports and make any title-backed silent stub narrowly scoped with the required debt record and regression test. The overlap check also reports `sceSystemServiceOpenTournamentOccurrence` shared with #9770; resolve that with its author and record the agreed order in `Depends on` before changing that export.
MarcZX10 commented 2026-10-22 18:00:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T18:00:43Z.

Review: CHANGES_REQUESTED


Blocking false-success behavior: this PR removes NotImplemented_nid_no_patch from many exports that still do no work and returns success. Examples in the exact diff include sceAudioPropagationSourceSetAudioPath (discards handle/path/data/gain), sceVoiceWriteToIPort (discards its input data/size), sceVoiceEnableChat/sceVoiceDisableChat (no chat backend), sceContentExportFromData/FromFile (no export), sceWebBrowserDialogSetCookie/ResetCookie (no cookie state), and sceLoginServiceRequestDevices (ignores its output). These are not implementations; a caller now gets success while the requested operation did not happen. The report only says the libraries build on Windows, and no behavioral tests or console evidence are included for these changes.

Please retain explicit throws for unsupported behavior and split out only operations with evidence and focused tests. The change also overlaps the other open stub-cleanup PRs #9827 and #9829, so coordinate shared exports and declare dependencies/order under CONTRIBUTING. Its base 11f976b2 is 44 commits behind current main a6646f84; rebase the scoped changes before final review. Current checks are conventions/intake/labels; all product test jobs are skipped. I did not run local tests for these libraries.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5618639417 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9826#pullrequestreview-5618639417). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T18:00:43Z. **Review:** CHANGES_REQUESTED --- Blocking false-success behavior: this PR removes `NotImplemented_nid_no_patch` from many exports that still do no work and returns success. Examples in the exact diff include `sceAudioPropagationSourceSetAudioPath` (discards handle/path/data/gain), `sceVoiceWriteToIPort` (discards its input data/size), `sceVoiceEnableChat`/`sceVoiceDisableChat` (no chat backend), `sceContentExportFromData`/`FromFile` (no export), `sceWebBrowserDialogSetCookie`/`ResetCookie` (no cookie state), and `sceLoginServiceRequestDevices` (ignores its output). These are not implementations; a caller now gets success while the requested operation did not happen. The report only says the libraries build on Windows, and no behavioral tests or console evidence are included for these changes. Please retain explicit throws for unsupported behavior and split out only operations with evidence and focused tests. The change also overlaps the other open stub-cleanup PRs #9827 and #9829, so coordinate shared exports and declare dependencies/order under CONTRIBUTING. Its base `11f976b2` is 44 commits behind current `main` `a6646f84`; rebase the scoped changes before final review. Current checks are conventions/intake/labels; all product test jobs are skipped. I did not run local tests for these libraries.
MarcZX10 commented 2026-10-23 18:57:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T18:57:48Z.

Review: CHANGES_REQUESTED


This diff removes NotImplemented_nid_no_patch from dozens of exports and leaves them returning success without performing the operation or populating outputs. That directly conflicts with CONTRIBUTING.md: an unimplemented export must throw, and the silent-stub exception is only for UI-only behavior that unblocks a title and is recorded in technical debt.

Examples in this patch include sceContentExportFromFile/sceContentExportFromFileWithThumbnail (success without exporting or filling outputs), sceNpTrophy2GetRewardIcon (success without writing the icon buffer), sceVoiceQoSReadPacket/WritePacket (success without transferring a packet), sceVoiceWriteToIPort (success without consuming data or updating *size), and sceBluetoothHidGetInputReport (success without returning a report). The PR gives no per-function behavior evidence or title-unblock case that would justify these silent results. Changing selected unsupported branches from the helper to direct runtime_error strings also diverges from the documented NotImplemented_nid_no_patch convention without adding behavior.

Please retain throwing behavior for unsupported operations and only change functions for which the implementation and output/error contract are supported by evidence, with focused tests and debt updates for remaining gaps. The hosted conventions, intake and labels checks pass; product builds are not present in this run, and the PR reports only a Windows library build. I did not run a local build for this broad multi-library diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5633131806 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9826#pullrequestreview-5633131806). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T18:57:48Z. **Review:** CHANGES_REQUESTED --- This diff removes `NotImplemented_nid_no_patch` from dozens of exports and leaves them returning success without performing the operation or populating outputs. That directly conflicts with `CONTRIBUTING.md`: an unimplemented export must throw, and the silent-stub exception is only for UI-only behavior that unblocks a title and is recorded in technical debt. Examples in this patch include `sceContentExportFromFile`/`sceContentExportFromFileWithThumbnail` (success without exporting or filling outputs), `sceNpTrophy2GetRewardIcon` (success without writing the icon buffer), `sceVoiceQoSReadPacket`/`WritePacket` (success without transferring a packet), `sceVoiceWriteToIPort` (success without consuming data or updating `*size`), and `sceBluetoothHidGetInputReport` (success without returning a report). The PR gives no per-function behavior evidence or title-unblock case that would justify these silent results. Changing selected unsupported branches from the helper to direct `runtime_error` strings also diverges from the documented `NotImplemented_nid_no_patch` convention without adding behavior. Please retain throwing behavior for unsupported operations and only change functions for which the implementation and output/error contract are supported by evidence, with focused tests and debt updates for remaining gaps. The hosted conventions, intake and labels checks pass; product builds are not present in this run, and the PR reports only a Windows library build. I did not run a local build for this broad multi-library diff.

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