fix(libSceGameUpdate): answer no update instead of throwing on request creation #10614
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10614"
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 mrfelek on 2026-10-24T12:54:42Z.
What
Since
41035b4a0(#9137),sceGameUpdateCreateRequestthrows once the library is initialized. Titles that check for a patch at start die there: Hot Wheels Infinite Rush (PPSA22408) aborts right after its title screen withsceGameUpdateCreateRequest: patch service request creation is not implemented, on Linux/RADV and Windows/NVIDIA.This PR gives the library its request lifecycle and the no-update answer:
sceGameUpdateCreateRequestkeeps requests in 8 slots with ids from0x20000000(wrapping at0x2FFFFFFF); a ninth returns0x80412806.sceGameUpdateCheck, after the existing argument checks, returns0x80412807for an aborted request and otherwise 0 withfoundand the byte after it cleared. The rest of the result is left untouched.sceGameUpdateAbortRequestmarks a request,sceGameUpdateDeleteRequestfrees it,sceGameUpdateTerminatedrops all of them.sceGameUpdateGetAddcontLatestVersionstill throws.Sources: prosper's reading of the PS5 3.20
libSceGameUpdate.sprx(slots, id range, error codes, the result write-back that touches only +8/+9, and that the module itself answers no update with return 0 when its patch-check service reports0x80412883). KytyPS5 also answers no update. What the service returns on an offline console is not measured, so the no-update answer is listed under Silent stubs indocs/dev/debt/libSceGameUpdate.md: it only decides whether a title offers a patch.How Hot Wheels uses it (from its call sites):
CreateRequest()with only the sign of the result tested;Check(id, {size 0x30, option 0}, {size 0x30})called once, synchronously, reading only the byte at +8;DeleteRequest(id)always after. Afoundof 1 would set Unreal's RequiredPatchAvailable privilege bit and block play, so the answer has to be no update. It runs inside the title's user privilege check, so it repeats (4 times up to the garage).Tested
fa515def8, Hot Wheels Infinite Rush (PPSA22408), onlylibSceGameUpdate.prxswapped:0x20000000-0x20000003. No update dialog; only the usual PSN/Milestone offline dialogs.f6075c2aborted at the same point in 2/2 starts; returning an error fromCreateRequestinstead got it to the garage.guest_gameupdatepasses.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)AI-assisted. Tested by me on my own machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T12:56:55Z.
Review: CHANGES_REQUESTED
The request lifecycle and focused regression executable pass in my local direct build (
g++ 12.2, C++20, compilingExport.cppwithGuestGameUpdate.cppand running the binary). The remaining issue is live-ID uniqueness at wraparound; see the inline comment. Hosted eligibility, conventions, intake, labels, and report pass. Product build/test jobs were skipped by eligibility.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T13:09:42Z.
Review: APPROVED
Reviewed updated head
0870b4dc11. The new allocator skips live IDs across wraparound. I locally compiled and ran GuestGameUpdate.cpp with Export.cpp (GCC 12.2, C++20), and also ran a focused boundary harness that holds FIRST_REQUEST_ID, sets the cursor to LAST_REQUEST_ID, allocates/deletes that slot, then verifies the wrapped allocation skips the still-live first ID. Both passed. The reported Windows title run and hosted conventions checks are additional author/CI evidence; hosted product jobs were skipped by eligibility.