feat(libSceBemp2sys): implement the logging and memory manager configuration #15061
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15061"
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 edubox on 2026-11-02T13:20:18Z.
What
The logging and memory-manager configuration of
libSceBemp2sysno longer throws:bemp2sys_logprintf_getlevelreturns the process-global log level (0 at start).bemp2sys_logprintf_setlevelstores 0..3; the 11.00 wrapper uses an unsigned compare, so larger and negative values are ignored.bemp2sys_logprintf_setfuncstores the log function pointer.bemp2sys_memmanager_setstores the three memory-manager pointers.The wrappers at
0x5cc0,0x5ca0,0x5cb0and0x5c90establish the level range, the default and the pointer storage. The stored pointers have no consumer until the parsers are implemented; the other 27 named exports keep throwing and the debt records that boundary.Tested
BUILD_TESTING=ON: the newguest_bemp2systest passes. It checks the default level, the accepted 0..3 range, the ignored 4 and -1 values, and that the log-function and memory-manager setters accept non-null pointers.python3 tools/check_conventions.py --base origin/main: all checks passed.python3 tools/pr_overlap.py --branch feat/bemp2sys-logging --jobs 32: no overlap with open pull requests.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)