feat(media-dialog): complete stubs in libSceAudiodec, libSceSaveData and libSceWebBrowserDialog #9819

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

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


What

Complete stubs in libSceAudiodec, libSceSaveData and libSceWebBrowserDialog.

Tested

Windows 10 x64, media and savedata stubs.

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:4970594334 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9819). Originally posted by [Delciob](https://github.com/Delciob) on 2026-10-22T16:19:39Z. --- ### What Complete stubs in libSceAudiodec, libSceSaveData and libSceWebBrowserDialog. ### Tested Windows 10 x64, media and savedata stubs. ### 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:46:48 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


I reviewed head a1cbebbe3c81a435a8e9b87e21beafb0acdb3eb4. The libSceAudiodec change is consistent with the recorded PS5 measurement: word size 0 returns ERROR_INVALID_WORD_LENGTH. The other changes need follow-up:

  • sceWebBrowserDialogSetCookie and ResetCookie now return success after only checking dialog initialization; neither function stores or applies cookies. No backend or behavior evidence is given. Keep these paths throwing until their behavior is implemented, or document and test an intentional supported no-op.
  • Open PR #9826 changes the same two WebBrowserDialog exports, currently also removing their throws. Coordinate rather than maintain two PRs for the same functions.
  • sceSaveDataPrepareForTransferring remains unimplemented, but replaces NotImplemented_nid_no_patch with a direct std::runtime_error; retain the prescribed helper while the transfer backend/parameters remain unresolved.

python3 tools/check_conventions.py --base upstream/main and git diff --check pass. The PR only says “Windows 10 x64, media and savedata stubs,” with no focused test commands/results. The merge-tree check reports conflicts against current main in all three touched files; please sync, resolve, coordinate #9826, and run the relevant tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617744039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9819#pullrequestreview-5617744039). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:46:48Z. **Review:** CHANGES_REQUESTED --- I reviewed head `a1cbebbe3c81a435a8e9b87e21beafb0acdb3eb4`. The `libSceAudiodec` change is consistent with the recorded PS5 measurement: word size 0 returns `ERROR_INVALID_WORD_LENGTH`. The other changes need follow-up: - `sceWebBrowserDialogSetCookie` and `ResetCookie` now return success after only checking dialog initialization; neither function stores or applies cookies. No backend or behavior evidence is given. Keep these paths throwing until their behavior is implemented, or document and test an intentional supported no-op. - Open PR #9826 changes the same two WebBrowserDialog exports, currently also removing their throws. Coordinate rather than maintain two PRs for the same functions. - `sceSaveDataPrepareForTransferring` remains unimplemented, but replaces `NotImplemented_nid_no_patch` with a direct `std::runtime_error`; retain the prescribed helper while the transfer backend/parameters remain unresolved. `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` pass. The PR only says “Windows 10 x64, media and savedata stubs,” with no focused test commands/results. The merge-tree check reports conflicts against current `main` in all three touched files; please sync, resolve, coordinate #9826, and run the relevant tests.
MarcZX10 commented 2026-10-22 20:09:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T20:09:29Z.

Review: CHANGES_REQUESTED


Several changed paths still do not implement the operation, but now report a different outcome:

  • sceWebBrowserDialogSetCookie and sceWebBrowserDialogResetCookie return success for initialized calls without storing, applying, or clearing cookies. The same cookie support is explicitly absent in open #9822/#9826; this is another duplicate and a false-success path.
  • sceSceAudiodec’s 24-bit PCM case (wordSize == 0) no longer throws and now returns ERROR_INVALID_WORD_LENGTH. The prior code marks that output format unimplemented; no test or console evidence establishes that this is the correct error.
  • sceSaveDataPrepareForTransferring still has unknown semantics and now uses raw std::runtime_error rather than the required NotImplemented_nid_no_patch helper.

Please retain explicit unimplemented behavior until these semantics are implemented and tested, and coordinate the cookie overlap with #9822/#9826 (Depends on: none is not consistent with the shared function changes). The PR only reports Windows builds/tests, not focused cookie/24-bit/transfer behavior. CI convention/intake/labels pass; product test jobs are skipped. I did not run local tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5620210897 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9819#pullrequestreview-5620210897). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T20:09:29Z. **Review:** CHANGES_REQUESTED --- Several changed paths still do not implement the operation, but now report a different outcome: - `sceWebBrowserDialogSetCookie` and `sceWebBrowserDialogResetCookie` return success for initialized calls without storing, applying, or clearing cookies. The same cookie support is explicitly absent in open #9822/#9826; this is another duplicate and a false-success path. - `sceSceAudiodec`’s 24-bit PCM case (`wordSize == 0`) no longer throws and now returns `ERROR_INVALID_WORD_LENGTH`. The prior code marks that output format unimplemented; no test or console evidence establishes that this is the correct error. - `sceSaveDataPrepareForTransferring` still has unknown semantics and now uses raw `std::runtime_error` rather than the required `NotImplemented_nid_no_patch` helper. Please retain explicit unimplemented behavior until these semantics are implemented and tested, and coordinate the cookie overlap with #9822/#9826 (`Depends on: none` is not consistent with the shared function changes). The PR only reports Windows builds/tests, not focused cookie/24-bit/transfer behavior. CI convention/intake/labels pass; product test jobs are skipped. I did not run local tests.

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