fix(libSceAjm): map AJM error codes to message strings #3205
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3205"
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 danzaio on 2026-10-11T01:06:26Z.
AJM error codes had no readable form. The lookup threw instead, so a title mapping an error to a message crashed on the throw, and any caller that lived through it still got a null description.
This maps the codes to their messages and keeps the unknown-code error the other AJM calls use. Red aborts in guest_ajm, green passes 1/1 on Windows (MinGW 15.2).
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T01:06:35Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T23:57:52Z.
Thanks for reopening this. It no longer merges cleanly into current main. Could you rebase onto current main? sceAjmStrError still throws NotImplemented on main, so this fix is still wanted. We'll review and run full CI on the new head.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T09:52:12Z.
@danzaio We reviewed this. The code is correct, and the conflict with
mainis just two sets of appended tests in GuestAjm.cpp. What holds it is where the strings come from:main's ownSCE_AJM_ERROR_*constant names in sentence case, and "Unknown AJM error" has no source. #5000 was closed on 13 Oct for the same reason: the real table lives only in firmware libSceAjm, and the bar to reopen was a named title that fails on the current behaviour, or a sourced table.main,sceAjmStrErrorthrows (NotImplemented); it doesn't return nullptr.Could you post the title (PPSA id) and the log where it hits that throw? With that we'll take it, merge
mainin for you and run full CI (guest_ajm). Without it we'll record the stub in the silent-stubs debt list instead. Thanks!Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:52:28Z.
Review: COMMENTED
The table in
core/libs/prx/libSceAjm.native/Export.cppcarries a provenance comment naming PPSA01317 plus a hex code comment on every line.tools/check_conventions.pyreports a title ID anywhere undercore/as title-specific, so that line will fail the Conventions check. The provenance is already in the debt entry; could the comments go and the table stay as it is?