fix(libSceCamera): accept camera index 1 in sceCameraIsAttached #25691
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25691"
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 mcarkade on 2026-11-22T14:58:33Z.
What
sceCameraIsAttached(1)returns0x802E0000on main. In two PS5 firmware 11.60 payload runs, index 1 returned 0, the same result as index 0. Indices -1 and 2 still returned0x802E0000. Accept both camera indices and report that neither has a camera attached. Console measurementMonopoly Plus (CUSA03312) calls this export at startup. The earlier title run established the caller. Title evidence
Tested
Windows 11, MinGW-w64 GCC 15.2.0, CMake/CTest 4.3.1 and Python 3.13.5. On main
b7d463d4381cwith the test change alone,guest_camerafailed at the index 1 assertion. With the fix,guest_camera,guest_camera2,guest_camera_settings,public_headersandpython tools/check_conventions.py --base origin/mainpassed. Local runtime verification was limited to these Windows guest tests.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 PrivacyOnion on 2026-11-22T15:00:18Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
46aeb8a464:tools/check_conventions.pypassed.guest_camera_testsbuilt cleanly.guest_camera):core/libs/prx/libSceCamera/Export.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T15:17:12Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected implementation matches the stated camera index behavior, and the reported guest tests cover both supported indices and out-of-range values.
What I ran
Reviewed head
46aeb8a464c447dbeaaee44800228361e7af9ff2. I readdescription.md,commits.md,manifest.json,diff.patch, the review folder README, and the full text of all included changed files. I did not run commands or tests.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The deleted file
docs/dev/debt/changes/docs-libscecamera-isattached-index.mdwas not available to read; its deleted contents are shown in the diff. I did not independently verify the PS5 payload measurements, title evidence, or the author-reported Windows guest tests. No runtime or build checks were run.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by throny on 2026-11-22T15:28:44Z.
Review: APPROVED
Review: ✅ correct, index 1 returns 0 as measured on 11.60
Basis: code read; checked against the payload probe in #24428 (fw 11.60, two runs) · head
46aeb8a464Checked
sceCameraIsAttached(1)returnsSCE_CAMERA_ERROR_PARAM. The probe shows index 0 and 1 → 0, 2 and -1 → 0x802E0000 with the firmware's owninvalid indexlog, soindex < 0 || index > 1matches.sceCameraOpen(Handles.cpp:45) keeps its ownindex == 0check (different export, not claimed). The updatedguest_cameraassertions fail on main at index 1.Findings: none
Suggested action: merge
AI-assisted review (Claude Code) · head
46aeb8a464· basemain2c08875217