feat(libSceBemp2sys): return from the two decoder release calls as firmware 13.42 does #15630
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15630"
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 BunnyFl on 2026-11-03T22:28:37Z.
What
bemp2sys_psdecoder_release(26MmdD1jVj8) andbemp2sys_tsdecoder_release(XN-ohv4INIA) threw. In firmware 13.42 both bodies are a loneret, and this change does the same: they return nothing and release nothing.Their parameter lists are still unknown (see the debt entry); the no-parameter declarations stay. The return type becomes
voidincore/libs/prx/libSceBemp2sys/include/Api.hpp. The firmware bodies below never setrax, sovoidis the only return type that claims no value.In
docs/dev/debt/libSceBemp2sys.md, the pending-exports entry goes from 27 to 25 named exports. A new entry says the parameter lists are unverified, and that the bodies were read from disassembly, not measured on a console.Source
Firmware 13.42
system/common/lib/libSceBemp2sys.sprx(sha256c222550a53a5263108e5c01a64367418f152a9fe9cabae7341a91271362bae6a), read from disassembly, not run on a console. Export addresses come from the module's dynamic symbol table:Tested
main56374036adinto the branch; the head is nowcbbbb6b475. The only conflict was incore/libs/CMakeLists.txt: #15837 moved theguest_voice_chatregistration next to this branch's new test intocore/libs/prx/libSceVoiceChat/CMakeLists.txt, so only this branch'sguest_bemp2sys_decoder_releaseblock stays there. No debt count changes.cbbbb6b475, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 67 of 67 pass, none Not Run, with both test executables rebuilt:guest_bemp2sys_decoder_release,guest_bemp2sys,public_headersand the 64public_headers_compile_*batches.main'sExport.cppandinclude/Api.hppput back,guest_bemp2sys_decoder_releaseaborts withbemp2sys_psdecoder_release_nid_postfix not implemented(1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed headcbbbb6b475: all checks pass.b748dc6aae: 66 of 66 pass. That is the newguest_bemp2sys_decoder_release,public_headersand the 64public_headers_compile_*batches.core/libs/tests/GuestBemp2sysDecoderRelease.cppcalls each release twice and checks that it returns.main'sExport.cppandinclude/Api.hppput back, the test aborts withbemp2sys_psdecoder_release_nid_postfix not implemented(1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed head: all checks pass.tools/pr_overlap.py --branch: 24 open PRs share lines, mostly incore/libs/CMakeLists.txt. None of their diffs names these two functions. #15061 (edubox) changes the same library's logging and memory manager calls, not these.main3cb1cd29ecinto the branch; the head is nowac819ef8dc. The only conflict was indocs/dev/debt/libSceBemp2sys.md, where both sides took exports out of the pending count and added an entry for them:mainimplemented the four logprintf and memmanager wrappers and opened a### Functionalsection for them, reading 27 named pending exports, while this branch read 29 for its two decoder release calls. Both new entries are kept, with this branch's decoder release entry moved undermain's new heading, and every entry stays under the 1000-character debt limit.Export.cpprather than subtracted: of its 33APS5_VABIentries, 27 still throw throughNotImplemented_nid_no_patch, 25 of them named and 2 bound by NID only, which the separate additional callable exports entry already covers. The pending entry now reads 25. As a check on the method, the same count givesmain's 27 onmainand this branch's 29 at headb748dc6aae, which is what each of those trees states.main's3rdparty/SDL2submodule bump; the staged pin matchesupstream/mainexactly.ac819ef8dc, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 67 of 67 pass, 0 failed, none skipped, none reported Not Run, with both test executables deleted and rebuilt before the run. That isguest_bemp2sys_decoder_releaseandguest_bemp2sys, which links the same library, pluspublic_headersand the 64public_headers_compile_*batches. The pre-merge run below did not includeguest_bemp2sys.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)🤖 Generated with Claude Code