Commit Graph
4 Commits
Author SHA1 Message Date
PrivacyOnion 67e821d3a3 test(libSceScreenShot): cover negative offset and valid origin parameter bounds in GuestScreenShot 2026-10-26 12:12:37 +01:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
hypermistandClaude Opus 5.5 1be7853e0a test(libSceScreenShot): give each test process its own file names
Both CTest entries run the same executable, and std::rand() starts from
the same seed in each, so parallel runs shared and removed each other's
files. The names now carry the mode and a random_device value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-21 19:51:30 +13:00
hypermistandClaude Opus 5.5 f2bdca611f feat(libSceScreenShot): track capture disabling and check overlay images
sceScreenShotDisable, sceScreenShotEnable and sceScreenShotIsDisabled
threw. Disable and enable now set and clear a process-wide flag that
IsDisabled reports, rejecting an id of -1 or a null result with
0x80BE0001 as the PS5 module does. The notification toggles return 0.

sceScreenShotSetOverlayImage(WithOrigin) check their arguments and the
image file in the module's order: origin 1 to 9, offsets within
1919x1079 (3839x2159 for SDK 3.50 and later), a path under 1024 bytes,
a readable file that is not a directory (0x80BE0003) and a size from 1
byte to 2 MiB (8 MiB for SDK 3.50 and later, 0x80BE000E). An accepted
image is not kept, since no screenshots are taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-21 19:31:48 +13:00