feat(libSceNpTus): run the try-and-set variable calls offline #8925
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8925"
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 pipe1os on 2026-10-21T06:28:47Z.
What
The 12
sceNpTusTryAndSetVariable*calls threwnot implemented. They now use the offline model the other TUS calls already use: the arguments are checked, and a started request finishes withSCE_NP_ERROR_SIGNED_OUT(0x80550006), orABORTEDaftersceNpTusAbortRequest.sceNpTusTryAndSetVariableAsync,...VUserAsync,...AAsync,...AVUserAsync,...ForCrossSaveAsyncand...ForCrossSaveVUserAsync.sceNpTusTryAndSetVariable,...VUser,...A,...AVUser,...ForCrossSaveand...ForCrossSaveVUserrun the async call and return its error, the wait error or the request result.Signatures and checks follow shadPS4 function by function. A null target or
resultVariableisINSUFFICIENT_ARGUMENT, anoptionor a negativeslotIdisINVALID_ARGUMENT, and an empty virtual user ID isINVALID_ARGUMENT, checked afteropeType. AnopeTypeoutside 1 to 6 differs between the calls in shadPS4:INVALID_ARGUMENTin the NpId andVUsercalls,INVALID_TYPE(0x80550711) in the account ID,AVUserand cross-save calls. The cross-save calls have the same checks as the account ID ones, so they call them. Like the other TUS calls,resultVariableSizeisn't checked and nothing is written, because the variable layouts aren't verified; the test checks that the buffer stays untouched. RPCS3's PS3 module doesn't checkopeTypeor an empty virtual user ID, which the new debt entry records.The 12 "unknown signature" debt lines are gone, the variable output entry now covers
resultVariable, and the new entry says where the checks come from and where the sources disagree.tools/progress.py --compareagainstmain+ #8805: +12 implemented functions, libSceNpTus only. The NID-patchedlibSceNpTus.prxexports the same 136 NIDs as before.tools/pr_overlap.py --branchlists only #6977, which already conflicts withmain, the same as on #8805.This builds on #8805: the blocking calls use its
sceNpTusWaitAsyncpath. Until #8805 merges, its commit shows up here too.Tested
BUILD_TESTING=ON,maina07e985c8f+ #8805a7d5b6a89:ctest --test-dir build -R '^guest_np_tus$'passes.Export.cppput back to #8805 and the new test kept, it fails withsceNpTusTryAndSetVariableAsync not implemented(0xc0000409).-Wall -Wextrawithout warnings.tools/check_conventions.py --base origin/mainpasses, andtools/check_test_registration.pyreports nothing new.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-21T06:29:36Z.
Progress report (
2c4b116→d79adb5)📈 System libraries: 42.21% (+0.11%, +12 implemented functions)
✅ 12 implemented
sceNpTusTryAndSetVariablesceNpTusTryAndSetVariableAsceNpTusTryAndSetVariableAAsyncsceNpTusTryAndSetVariableAVUsersceNpTusTryAndSetVariableAVUserAsyncsceNpTusTryAndSetVariableAsyncsceNpTusTryAndSetVariableForCrossSavesceNpTusTryAndSetVariableForCrossSaveAsyncsceNpTusTryAndSetVariableForCrossSaveVUsersceNpTusTryAndSetVariableForCrossSaveVUserAsyncsceNpTusTryAndSetVariableVUsersceNpTusTryAndSetVariableVUserAsyncImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T06:39:55Z.
Some 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/libSceNpTus/Export.cppcore/libs/tests/GuestNpTus.cppdocs/dev/debt/libSceNpTus.mdImported from boykopovar/AnyPS5. Originally posted by pipe1os on 2026-10-22T05:59:09Z.
Closing this: #9009 is merged and covers the same 12
sceNpTusTryAndSetVariable*calls with the same checks, so there's nothing left here to add.Pull request closed