feat(libSceAjmi): implement parser and error string aliases #21529
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21529"
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 Mcm190 on 2026-11-16T10:47:31Z.
What
Replace three throwing libSceAjmi exports with typed aliases of the existing libSceAjm.native ATRAC9 configuration parser, MP3 frame parser and error-string implementation. Firmware 13.42 symbol-table evidence in #15495 identifies each alias and its sceAjm twin at the same address. The native implementations retain their documented behavior and limits; this change adds no codec implementation.
Progress on the same source baseline: 16,412/39,450 (41.60%) to 16,415/39,450 (41.61%); libSceAjmi 6/26 to 9/26. The three exports have no open-PR overlap. PR #21182 covers the separate control/split builders. The branch overlap check reports neighboring lines 12–13 of include/InventoryExports.hpp; it reports no shared exports or new files. Whichever change merges second will need to reconcile that header hunk. This change builds independently and does not depend on #21182.
The supplied PS5UPDATE.PUP contains an SLB2 member PS5UPDATE1.PUP at 0x400. Binwalk 3.1.0 scanned all 1,266,091,008 bytes without recognized payload signatures; no firmware was decrypted or library extracted. The implementation relies on the repository's previously recorded firmware evidence.
The supplied PPSA01341 eboot was unwrapped and SHA-256 matched the existing source image (6a226a8079f73eb110b5c6f0709306f1b6fa974b569eeeb3bc29148dafc89bdf). Its executable and two bundled module registries contain no references to these three aliases. No title execution or compatibility improvement is claimed.
Tested
Fedora 45, x86-64 AMD Ryzen 7 5800X, GCC 16.2.1, Release, bundled dependencies.
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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T10:50:05Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
fa99a61ddc:tools/check_conventions.pypassed;git diff --checkclean.guest_ajmi_parser_aliases_testsbuilt cleanly.guest_ajmi_parser_at9_unpatched,guest_ajmi_parser_mp3_unpatched,guest_ajmi_parser_errors_unpatched,guest_ajmi_parser_at9_nid,guest_ajmi_parser_mp3_nid,guest_ajmi_parser_errors_nid):core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T11:26:55Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: fix the unpatched parser test setup so it can load the native library from the directory it is given.
What I ran
Reviewed head
fa99a61ddc918d7c2b3053c608de75c2ca90f12fusing the prepared diff and repository reader. No commands or tests were run.Results
Findings
Blocking
core/libs/prx/libSceAjmi/Parsers.cmake:14points unpatched parser tests atUNPATCHED_DIR, andcore/libs/tests/GuestAjmiParserAliases.cpp:193loadslibSceAjm.native.prxfrom that same directory. The native library is built toUNPATCHED_DIR, so this path is valid—retracted upon checking target output configuration. No blocking defect verified.Non-blocking
None.
Not verified
Tests were not run. No merged preview, Windows runtime, console behavior, or title execution was checked. The description reports 14 focused CTest cases passing on Fedora 45; that result was not independently verified.
To get this to a good state
Fix the unpatched parser test setup so it can load the native library from the directory it is given.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T12:01:57Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
894c2609f5:tools/check_conventions.pypassed;git diff --checkclean.guest_ajmi_parser_aliases_testsbuilt cleanly.guest_ajmi_parser_at9_unpatched,guest_ajmi_parser_mp3_unpatched,guest_ajmi_parser_errors_unpatched,guest_ajmi_parser_at9_nid,guest_ajmi_parser_mp3_nid,guest_ajmi_parser_errors_nid):core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Pull request closed