feat(libSceUserService): implement sceUserServiceGetAccessibilityKeyremapEnable and sceUserServiceGetAccessibilityZoom #5988
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5988"
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 ErenYeager1836 on 2026-10-14T18:31:33Z.
What
Declares
sceUserServiceGetAccessibilityKeyremapEnableandsceUserServiceGetAccessibilityZoominlibSceUserServiceas throwing stubs callingNotImplemented_nid_no_patchper the exact-or-throw rule.Titles such as Unity runtime games query user accessibility settings at startup. These exports complete the standard accessibility getter suite alongside
sceUserServiceGetAccessibilityChatTranscription,PressAndHoldDelay,TriggerEffect,Vibration,ZoomEnabled, andZoomFollowFocus.The function names map to their respective NIDs in aerolib via
tools/nid_names.py:sceUserServiceGetAccessibilityKeyremapEnable->xrtki9sUopgsceUserServiceGetAccessibilityZoom->1zDEFUmBdooDocumented under the unverified stubs section in
docs/dev/debt/libSceUserService.md.Tested
python tools/check_conventions.py --base upstream/mainpasses cleanly.tools/nid_names.pyderives matching NIDs (xrtki9sUopg,1zDEFUmBdoo).GuestUserServiceunit test suite updated with coverage asserting both stubs throwstd::runtime_error.configure_windows_unwind(guest_user_service_tests)incore/libs/prx/libSceUserService/CMakeLists.txt; unit testguest_user_servicepasses locally on Windows (100% tests passed out of 1).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 github-actions[bot] on 2026-10-14T18:32:19Z.
Progress report (
a86577e→432ad48)📉 System libraries: 90.16% (-0.05%, +2 declared functions)
🆕 2 declared as stubs
sceUserServiceGetAccessibilityKeyremapEnablesceUserServiceGetAccessibilityZoomImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:12:48Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceUserService.mdL10Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceUserService/CMakeLists.txtcore/libs/tests/GuestUserService.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T20:09:44Z.
Review: DISMISSED
Thanks for the PR. Two things need fixing before this can merge:
core/libs/prx/libSceUserService/Export.cpp:29and:45: theint32_t*signature and the default0are copied from the sibling getters, not taken from a source. shadPS4 only has parameterless stubs for both, and KytyPS5, fpPS4 and prosper-win have nothing on them.GetAccessibilityZoomin particular may report a zoom level or factor rather than a flag, so0is a guess. Per the "exact or throw" rule, unverified values and params must keep throwing. Either cite a source for the signature and value (a measurement on a console, or a call site in a title with the instruction offsets), or leave them asNotImplemented_nid_no_patch.docs/dev/debt/libSceUserService.md:10: that line says the values are "what a PS5 (firmware 13.60) reports for a user whose accessibility settings are all at their defaults". That was measured for the six existing getters, not for these two, so adding them makes the line false. If you keep the implementation, give them their own line under the right section saying the signature and value are inferred from the sibling getters."Unity titles query accessibility at startup" is also not backed in the PR: which import of PPSA12544 calls these two, and what does it do with the result?
Build and ctest were not run, since the review stops at these points. Happy to look again once there is a source for the two getters.
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-17T03:14:03Z.
Thank you @adriadam10 for the feedback! Updated sceUserServiceGetAccessibilityKeyremapEnable and sceUserServiceGetAccessibilityZoom to parameterless throwing stubs calling NotImplemented_nid_no_patch per the exact-or-throw rule, added test coverage in GuestUserService verifying they throw, and restored the debt document measured defaults section while documenting the unverified stubs separately.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T02:53:26Z.
Picking this up while @adriadam10 is away: we will merge it once full CI and an independent review pass on this head.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T03:22:54Z.
Thanks, the stubs themselves look right. One fix is needed for Windows:
guest_user_serviceaborts there with[libc] unhandled exception 'St13runtime_error'(CI run 39090665553), because the test executable's unwind tables aren't registered, so the newcatchis never reached. Please addconfigure_windows_unwind(guest_user_service_tests)after itstarget_link_librariesincore/libs/prx/libSceUserService/CMakeLists.txt, as other tests that catch do (e.g.libSceAudioIn/CMakeLists.txt:11). Optional while you're there: the PR description still describes the first version (ReportAccessibilitySetting, null-pointer checks); please update it to say these are throwing stubs.Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-18T03:55:11Z.
Thanks @oneandonlydean for identifying the unwind table issue on Windows!
Pushed commit
432ad4839:configure_windows_unwind(guest_user_service_tests)incore/libs/prx/libSceUserService/CMakeLists.txtaftertarget_link_libraries.guest_user_servicenow unwinds and catches both throwing stubs: