feat(prx): complete stubs across 30 system, audio, and utility libraries #9826
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9826"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:44:18Z.
Review: CHANGES_REQUESTED
I reviewed head
6307b695e49b38ac769a772e08dac7e3d0ac2382. This removesNotImplemented_nid_no_patchfrom 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, andsceNpGetSandboxInfonow return/implicitly yield success without completing requests, storing callbacks, or applying restrictions.sceContentExportFromData,sceContentExportFromFile, andsceContentExportFromFileWithThumbnailreturn success without exporting content.sceSaveDataCancelandsceSaveDataPrepareForTransferringreturn success without cancellation/transfer behavior.sceBluetoothHidGetDeviceName,GetInputReport, andSetOutputReportare no-argument success stubs.sceVoiceWriteToIPortdrops the buffer and reports success;sceVoiceEnableChat/DisableChatdo nothing despite the documented missing backend.sceNpTrophy2GetRewardIconreturns success without setting the size or writing an icon; its debt entry says callers query size then fetch the unknown icon data.sceSystemServiceOpenTournamentOccurrenceduplicates 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_patchwith directstd::runtime_error, contrary to the prescribed unimplemented-export convention.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpass. No focused tests were added or described; I did not run a product build. The overlap check against currentmainreports merge conflicts in several touched files, and the exactsceSystemServiceOpenTournamentOccurrenceoverlap with #9770 needs resolving.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 callNotImplemented_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, includingsceAudioOutDeviceIdOpen,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 reportssceSystemServiceOpenTournamentOccurrenceshared with #9770; resolve that with its author and record the agreed order inDepends onbefore changing that export.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_patchfrom many exports that still do no work and returns success. Examples in the exact diff includesceAudioPropagationSourceSetAudioPath(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), andsceLoginServiceRequestDevices(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
11f976b2is 44 commits behind currentmaina6646f84; 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.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T18:57:48Z.
Review: CHANGES_REQUESTED
This diff removes
NotImplemented_nid_no_patchfrom dozens of exports and leaves them returning success without performing the operation or populating outputs. That directly conflicts withCONTRIBUTING.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), andsceBluetoothHidGetInputReport(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 directruntime_errorstrings also diverges from the documentedNotImplemented_nid_no_patchconvention 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