fix(rudp): provide the calls PPSA03490 still lacks #3823
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3823"
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 xXPBSXx on 2026-10-11T17:14:50Z.
What
Adds the four
libSceRudpcalls the P2P title PPSA03490 still lacks after the merged Rudp PRs, so it no longer fails to load on them:sceRudpProcessEventsandsceRudpNetFlush: no reliable-UDP stack exists on the host, so with nothing to process or send they return success aftersceRudpInitandRUDP_ERROR_NOT_INITIALIZEDbefore it (shadPS4 returns OK from its stubs). The title callssceRudpProcessEvents(0)thensceRudpNetFlush()from its P2P service thread.sceRudpGetMaxSegmentSize: throwsNotImplemented_nid_no_patch; its signature and the real segment size are unknown.sceRudpNetReceived: parameters unknown, so it throwsNotImplemented_nid_no_patch.The success of the first two holds because no context here ever holds pending data (
sceRudpWrite/sceRudpReadonly report a reset context); it is listed indocs/dev/TechnicalDebt.md.guest_rudp_pump_testscovers the two pump calls and that the other two throw.Tested
Windows,
maina11c8f7f7plus this branch:python tools/check_conventions.py --base upstream/mainpasses;ctest -R rudp(guest_rudp_status,guest_rudp_context_queries,guest_rudp_pump) passes. Not tested on a Linux build, and not run against the title itself with this exact branch. Whether the real calls take parameters is unknown.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:15:12Z.
Progress report (
a11c8f7→4eb3340)📉 System libraries: 85.77% (-0.04%, +2 implemented, +2 declared functions)
✅ 2 implemented
sceRudpNetFlushsceRudpProcessEvents🆕 2 declared as stubs
sceRudpGetMaxSegmentSizesceRudpNetReceivedImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T17:39:17Z.
Windows test of this branch with a second title, not the one it was written for: 永久與神樹的祈願者 (PPSA25936, Unity),
maina11c8f7f7plus this PR's head, relinked with--windows --module-dir Media/Modules --module-dir Media/Plugins(all 9 modules convert; the import audit shows 0 absent imports). Of the four calls this PR adds, the title imports onlysceRudpNetReceived, which the audit lists as a stub that throws when called.A 60 s run (
run_title, Windows 10, RTX 4080 SUPER) shows no fault, no abort and no throw from the Rudp library, so the title did not callsceRudpNetReceivedin that time. It reaches rendering and then printsAGC graphics: storage image access to depth/stencil surface ... is not implementedfor several surfaces (the #1409 case); I did not look at the window.What this does not show: whether the title calls
sceRudpNetReceivedlater (it would throwNotImplemented_nid_no_patchwith the call's name), and anything about the P2P path PPSA03490 uses. I did not run the title without this PR for comparison.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T17:52:01Z.
Review: CHANGES_REQUESTED
Built and ran
guest_rudp_*on the PR merged onto main: all pass, andguest_rudp_pumpdoes not even link without the Export.cpp change. Points to fix:core/libs/prx/libSceRudp/Export.cpp:261sceRudpGetMaxSegmentSizereports success but writes nothing, so the caller gets back whatever it passed in. That is a plausible-but-wrong result wheremainthrew (exact or throw), and theuint16_t*signature is inferred from one call site (shadPS4's stub declares no parameters). Either throwNotImplemented_nid_no_patchfor it, or return a real value with a cited source (e.g. the default MSS the library uses) and list the signature as inferred in TechnicalDebt.sceRudpProcessEvents/sceRudpNetFlush(Export.cpp:246,:251): success is defensible only if no context can hold pending data. Please say in TechnicalDebt that this holds becausesceRudpRead/write paths here never queue anything, or throw once a context exists.docs/dev/TechnicalDebt.md:600-602: the lines are at the end of the section (and of the file), which conflicts with #3469 and #3496 (see the overlap comment). Move them a few lines up, away from the last line. ThesceRudpNetReceivedline is listed under "Functional" although it throws; drop it or move it to the place where throwing stubs are tracked.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T18:32:46Z.
Thanks, all four points addressed in
4eb3340dc:sceRudpGetMaxSegmentSizenow throwsNotImplemented_nid_no_patch(declared without parameters, since the signature rested on one call site); I have no cited source for a real segment size. Its TechnicalDebt line is gone.sceRudpProcessEvents/sceRudpNetFlush: the TechnicalDebt line now says why success holds:sceRudpWrite,sceRudpReadandsceRudpGetStatushere never queue data (a reset or idle context), so no context holds anything to process or send.sceRudpNetReceivedline is dropped (it throws).guest_rudp_pumpnow checks the two pump calls and thatsceRudpNetReceivedandsceRudpGetMaxSegmentSizethrow.Tested:
check_conventions.py --base upstream/mainpasses,ctest -R rudppasses (3 tests), Windows only.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:07:35Z.
Review: APPROVED
Checked on the PR merged onto main:
core/libsbuild and ctest green (20/20,guest_rudp_pumpincluded); the test does not link without the Export.cpp change. All points from the previous review are addressed (sceRudpGetMaxSegmentSizethrows, the TechnicalDebt line justifies the success of the pump calls, line moved off the end of the section). Merging once CI is green.