feat(libScePlayReady): add subsystem CMakeLists.txt and consolidate version and buffer tests #15836

Closed
Elma7e wants to merge 1 commit from upstream-pr/15836 into main
Elma7e commented 2026-11-04 18:38:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Elma7e on 2026-11-04T18:38:14Z.


What

Provide dedicated core/libs/prx/libScePlayReady/CMakeLists.txt declaring libScePlayReady shared library target with Windows unwind configuration. Consolidate guest_playready_tests from root core/libs/CMakeLists.txt into subsystem CMake with Windows DLL search path prepend. Add test coverage for scePlayReadyMemGetStats. Update technical debt documentation.

Tested

Conventions pass via tools/check_conventions.py. Standalone compilation and execution of GuestPlayReady.cpp succeeds with exit code 0.

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: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5159610226 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15836). Originally posted by [Elma7e](https://github.com/Elma7e) on 2026-11-04T18:38:14Z. --- ### What Provide dedicated `core/libs/prx/libScePlayReady/CMakeLists.txt` declaring `libScePlayReady` shared library target with Windows unwind configuration. Consolidate `guest_playready_tests` from root `core/libs/CMakeLists.txt` into subsystem CMake with Windows DLL search path prepend. Add test coverage for `scePlayReadyMemGetStats`. Update technical debt documentation. ### Tested Conventions pass via `tools/check_conventions.py`. Standalone compilation and execution of `GuestPlayReady.cpp` succeeds with exit code 0. ### 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: yes
adriadam10 commented 2026-11-07 20:47:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T20:47:54Z.

Review: CHANGES_REQUESTED


Thanks for the PR. Points to address:

  • core/libs/prx/libScePlayReady/CMakeLists.txt reproduces what core/libs/CMakeLists.txt already does for a library without one (add_library(... SHARED EXCLUDE_FROM_ALL Export.cpp), include dir, configure_windows_unwind), so it changes nothing. Drop it, or say what it needs that the default doesn't give.
  • Moving the test there drops set_tests_properties(guest_playready PROPERTIES TIMEOUT 20). Keep it if the move stays.
  • GuestPlayReady.cpp:99 pins scePlayReadyMemGetStats() == 0x80004001. That value is a placeholder in Export.cpp with no reference behind it, so the test only checks the code against itself. Either cite where the return comes from (firmware disassembly, as the neighbouring entries do), or make the export throw with NotImplemented_nid_no_patch and list it in the debt file.
  • docs/dev/debt/libScePlayReady.md "Functional" entry describes the PR, not a gap. Debt lines record what is unknown or approximated; remove it.
  • The PR now conflicts with main in core/libs/CMakeLists.txt; rebase after the above.
  • Title: this is not a feat; use test(...)/build(...) if something remains.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5814933054 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15836#pullrequestreview-5814933054). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-07T20:47:54Z. **Review:** CHANGES_REQUESTED --- Thanks for the PR. Points to address: - `core/libs/prx/libScePlayReady/CMakeLists.txt` reproduces what `core/libs/CMakeLists.txt` already does for a library without one (`add_library(... SHARED EXCLUDE_FROM_ALL Export.cpp)`, include dir, `configure_windows_unwind`), so it changes nothing. Drop it, or say what it needs that the default doesn't give. - Moving the test there drops `set_tests_properties(guest_playready PROPERTIES TIMEOUT 20)`. Keep it if the move stays. - `GuestPlayReady.cpp:99` pins `scePlayReadyMemGetStats() == 0x80004001`. That value is a placeholder in `Export.cpp` with no reference behind it, so the test only checks the code against itself. Either cite where the return comes from (firmware disassembly, as the neighbouring entries do), or make the export throw with `NotImplemented_nid_no_patch` and list it in the debt file. - `docs/dev/debt/libScePlayReady.md` "Functional" entry describes the PR, not a gap. Debt lines record what is unknown or approximated; remove it. - The PR now conflicts with `main` in `core/libs/CMakeLists.txt`; rebase after the above. - Title: this is not a `feat`; use `test(...)`/`build(...)` if something remains.

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