feat(libSceRegMgr): add sceRegMgrNonSysGetInt stub #6497
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6497"
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 giovanniadamo on 2026-10-15T17:33:41Z.
What
libSceRegMgr didn't exist at all in AnyPS5. Astro Bot (PPSA21564) fails to load because its loader can't find libSceRegMgr.prx (#4720, GetLastError 126). Its import log only needs one export from that library: sceRegMgrNonSysGetInt.
This PR adds the library with just that export. The signature isn't documented by Sony, it comes from community reverse engineering (a PS5 3.20 firmware dump, cross checked against ChonkyStation4), so the function throws via NotImplemented_nid_no_patch instead of guessing real behavior, per this repo's convention. A debt doc entry records where the signature came from.
This fixes the load failure. Whether Astro Bot runs further depends on whether it actually calls this function during play, not just resolves it.
Tested
Windows 11, MinGW (winlibs 15.2.0-14.0.0-r7). Full suite:
ctest1266/1266 passing, including the newguest_regmgrtest. Not tested against the real game, I don't own it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); no silent stubs here.mdfiles or images added to the repository🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:04:55Z.
Review: COMMENTED
Linux run. The PR only lists Windows.
Setup: Ubuntu 26.04, i7-8700, GCC 15.2, Release, full build with
BUILD_TESTING=ON. Head66b0a6082merged onto main44df21632. I reconfigured after the merge, because theprx/*glob only picks up the new directory at configure time.Results
libSceRegMgr.prxis built and exportsdKeshzt29G4next tosceRegMgrNonSysGetInt(readelf --dyn-syms).guest_regmgrandpatched_librariespass, and pass 5/5 with--repeat until-fail:5.ctest -E "^agc"): 669/671. The new test is the only extra one. The two failures arefile_writer_binaryandfile_writer_text, which also fail on plain main on this host (668/670).Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T02:22:51Z.
Progress report (
03c4cb5→66b0a60)📉 System libraries: 88.77% (-0.03%, +1 declared functions)
🆕 1 declared as stubs
sceRegMgrNonSysGetInt