Repository navigation
feat(libSceVideoRecording): export the PS4 recording calls CUSA12982 imports - #28089
Conversation
…imports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Feature Merge Risk:
|
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 44228e1bf9:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_video_recording_ps4_testsbuilt cleanly. - CTest (
guest_video_recording_ps4):1/1 Test #6290: guest_video_recording_ps4 ........ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceVideoRecording/Export.cpp,core/libs/prx/libSceVideoRecording/libSceVideoRecording.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass. - Code reading:
- Verified that sceVideoRecordingOpen2_nid_disambig1 and sceVideoRecordingQueryMemSize2_nid_disambig1 throw NotImplemented_nid_no_patch(func) as unknown layouts per AGENTS.md and are documented in the debt fragment.
- Verified that sceVideoRecordingClose_nid_disambig1, sceVideoRecordingGetStatus_nid_disambig1, sceVideoRecordingStart_nid_disambig1, and sceVideoRecordingStop_nid_disambig1 check sceKernelIsPs4Process() == 1 and return expected 0x80a80006 (ErrorNotOpen) and 0 (StatusNone).
- Verified that technical debt documentation in docs/dev/debt/changes/feat-libscevideorecording-ps4-imports.md conforms to required format and documents gaps/behavior.
- Verified that all exported signatures in libSceVideoRecording.hpp match C linkage and APS5_VABI calling convention without LP64/LLP64 type mismatch.
- Verified that unit test GuestVideoRecordingPs4.cpp properly exercises each added export, verifying error codes and exception throwing on unimplemented functions.
Looks Good To Me
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
The change adds all six requested exports and explicitly leaves the two calls with unknown behavior unimplemented; this review did not run the reported checks.
What I ran
- Read the prepared description, commit summary, manifest, diff, and all four changed files at head
44228e1bf943a8b46ddb0a721f801afaec870bc3. - Searched the pinned repository for the new export names,
NotImplemented_nid_no_patch, and related recording-library references. - No build or tests were run. The prepared bundle did not expose
files.jsonthrough the reader.
Results
| Check | Result | Note |
|---|---|---|
| Change and source review | passed | All four changed files read |
| Build and tests | not run | Description reports Windows tests; not independently run |
| Files excluded by rule | not verified | files.json unavailable |
Findings
Blocking
None identified in the files read.
Non-blocking
- The test helper only recognizes
std::runtime_errorwith the text “not implemented.” It would miss other exception types from the unimplemented paths, so consider asserting the specific exception contract if one exists. The helper and its use are atcore/libs/tests/GuestVideoRecordingPs4.cpp:25andcore/libs/tests/GuestVideoRecordingPs4.cpp:110.
Not verified
- No executable checks were run; the test and console results in the description are author-reported.
files.jsonwas unavailable, so files excluded by rule could not be identified. The manifest lists four changed files, all of which were read.- No claim is made about behavior on physical hardware or other platforms.
To get this to a good state
Nothing is required. The exception assertion is an optional improvement.
|
Linux check of the exact head
AI-assisted: yes |
|
Exports with a name or library/NID already present in
|
Progress report (4ea61d0 → 44228e1)📉 System libraries: 47.82% (-0.01%, +6 declared functions) 🆕 6 declared as stubs
Changed libraries (implemented exports)
|
|
Windows check of head
AI-assisted: yes |
What
CUSA12982 failed to link: it imports six functions from
libSceVideoRecording, which only exportedsceVideoRecordingSetInfo. This adds them in that file's PS4 style:sceVideoRecordingGetStatusreturns 0 andsceVideoRecordingStart,StopandClosereturn0x80A80006, the answers with no recorder open: this library never opens one,sceVideoRecordingSetInforeturns the same0x80A80006for info that needs a recorder, andlibSceVideoRecordingPmeasured these values on a PS5. A PS5 title throws, as inSetInfosceVideoRecordingOpen2andsceVideoRecordingQueryMemSize2throw: the PS4 parameter layout and sizes are unknown, andlibSceVideoRecordingP's Open2 throws tooCUSA12982 also needs the
libSceGnmDriverimports from #27342, #27937 and #28088.Tested
Windows 10, WinLibs GCC 15.2.0 r7:
guest_video_recording_ps4passes with the new checks on top of theSetInfocases. With both PRs, CUSA12982 links, starts, loads its pak files and later stops on an unrelated app0.zar directory read; it does not call Open2 or QueryMemSize2 on the way.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)🤖 Generated with Claude Code
Summary by CodeRabbit