feat(libSceRudp): implement sceRudpGetStatus #2359
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2359"
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 mrzacarias on 2026-10-09T16:17:47Z.
What
sceRudpGetStatusthrewNotImplemented_nid_no_patcheven after initialization. PPSA01521 calls it with an output pointer and byte count0xF8.It now returns
RUDP_ERROR_NOT_INITIALIZEDbefore initialization and otherwise zeroes the buffer (state 0 = idle, no connections) and returns 0, mirroring the siblingsceRudpGetContextStatus.The status layout and size rules are unknown, so the buffer is zeroed and the size is not validated; recorded in TechnicalDebt.
Tested
python3 tools/check_conventions.py --base origin/mainpasses.sceRudpGetContextStatusbody.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-09T18:29:38Z.
Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at
adbd8f5e:/tmp/anyps5_build) with zero warnings/errors.python3 tools/check_conventions.py --base origin/main --head HEAD-> PASS (0 errors).sceRudpGetStatusexport and initialization checks inlibSceRudp/Export.cpp. Gracefully writes idle status when initialized and returnsRUDP_ERROR_NOT_INITIALIZEDotherwise, with proper technical debt documentation.LGTM!
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:41:34Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
adbd8f5e, merged ontomain8b393b6ein one build with 31 other PRs that had no Windows run.This breaks the existing
guest_offline_importstest on any platform. The test aborts, becauseGuestOfflineImports.cpp(lines 71-86) still expectssceRudpGetStatusto throwsceRudpGetStatus not implemented, before and aftersceRudpInit. Withmain'slibSceRudp/Export.cppswapped back into the same build, it passes 3 of 3. With this PR's version, it aborts 2 of 2. The test's Rudp part needs updating along with the implementation.The rest of the suite passes in that build (520 of 521).
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by mrzacarias on 2026-10-09T19:58:11Z.
Fixed the test breakage:
GuestOfflineImports.cppnow expectssceRudpGetStatusto returnRUDP_ERROR_NOT_INITIALIZEDbefore init and zero the status buffer after init, instead of throwing not-implemented. Verified locally in a Linux container:guest_offline_imports_testspasses (exit 0).Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:04:49Z.
Checked on Linux: build + full ctest green (532/532), and the updated
guest_offline_importsfails without the change. The TechnicalDebt line records the unknown layout and size rules. Thanks @popcoder565 for catching the test break; merging.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:20:40Z.
Progress report (
8b393b6→baa4b07)📈 System libraries: 84.72% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceRudpGetStatus