feat(libSceImeBackend): declare 22 sceImeBackend exports #10887

Merged
thuanquang merged 1 commit from upstream-pr/10887 into main 2026-10-26 16:29:20 +00:00
thuanquang commented 2026-10-25 07:29:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-25T07:29:44Z.


What

libSceImeBackend only re-exports libSceIme, so a title that imports the backend's own functions does not load. Persona 5 Royal (PPSA05110) imports 22 of them; on main it stops before its entry point with 22 lines like

FAIL: unresolved ELF import 9GIB91cj1wc from libSceImeBackend.prx

This PR declares those 22 functions without parameters, as #10068 did for libSceCamera's pending exports: their signatures and behaviour are not established, so each call throws through NotImplemented_nid_no_patch. They are declared in a new include/Api.hpp and listed in a new debt file. The names come from the title's NIDs through tools/nid_names.py --nid, and each NID recomputes from its name. The pinned PS5 3.20 export inventory has no libSceImeBackend file, so only the functions a title imports are declared.

Tested

  • Windows 11 26200, WinLibs GCC 15.2.0, Release.
  • PPSA05110 (own dump, content version 01.000.000), RX 6700 XT:
    • main 61fc572cee: the 22 unresolved ELF import ... from libSceImeBackend.prx lines, and the title does not start.
    • This change (060e516d0e on main 8b426927d7): tools/import_audit.py on the title's registries moves the 22 from "Absent: no built library exports these" (on main, the first unresolved import is 9GIB91cj1wc, sceImeBackendParamInit) to "Stub: exported but throws when called".
    • The same 22 declarations on main 61fc572cee (game runs): the title shows its logo, the health warning and its network prompt. Choosing No, it reaches the title screen and the Load screen with no stop in a 420 s run. Choosing Yes, it stops at sceGameUpdateCreateRequest: patch service request creation is not implemented, which #10614 addresses.
    • No run reached any of the 22: each throws, and no run stopped in one. From the title's code (read from disassembly, not measured), it loads libSceImeBackend at start-up and calls these functions only from one text-entry module, which it enters only when /app0/app_config/region_jp.txt exists; this dump does not have that file.
  • public_headers: the audit and all 64 compile batches pass. They were run by hand here, since the audit takes 34 s on this machine, over ctest's 30 s timeout.
  • Linux, by wachi35676 on WSL Ubuntu 24.04 with GCC 13.3, this head merged onto main aeff26bd9 (comment): libSceImeBackend builds with 0 warnings and exports the 22 sceImeBackend* symbols; on Windows the same check found the 22 NIDs in the patched module's export table. macOS was not built.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (not applicable)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA05110 #10872
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5002759924 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10887). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-25T07:29:44Z. --- ### What `libSceImeBackend` only re-exports `libSceIme`, so a title that imports the backend's own functions does not load. Persona 5 Royal (PPSA05110) imports 22 of them; on `main` it stops before its entry point with 22 lines like ``` FAIL: unresolved ELF import 9GIB91cj1wc from libSceImeBackend.prx ``` This PR declares those 22 functions without parameters, as #10068 did for libSceCamera's pending exports: their signatures and behaviour are not established, so each call throws through `NotImplemented_nid_no_patch`. They are declared in a new `include/Api.hpp` and listed in a new debt file. The names come from the title's NIDs through `tools/nid_names.py --nid`, and each NID recomputes from its name. The pinned PS5 3.20 export inventory has no `libSceImeBackend` file, so only the functions a title imports are declared. ### Tested - Windows 11 26200, WinLibs GCC 15.2.0, Release. - PPSA05110 (own dump, content version 01.000.000), RX 6700 XT: - `main` `61fc572cee`: the 22 `unresolved ELF import ... from libSceImeBackend.prx` lines, and the title does not start. - This change (`060e516d0e` on `main` `8b426927d7`): `tools/import_audit.py` on the title's registries moves the 22 from "Absent: no built library exports these" (on `main`, the first unresolved import is `9GIB91cj1wc`, `sceImeBackendParamInit`) to "Stub: exported but throws when called". - The same 22 declarations on `main` `61fc572cee` (game runs): the title shows its logo, the health warning and its network prompt. Choosing No, it reaches the title screen and the Load screen with no stop in a 420 s run. Choosing Yes, it stops at `sceGameUpdateCreateRequest: patch service request creation is not implemented`, which #10614 addresses. - No run reached any of the 22: each throws, and no run stopped in one. From the title's code (read from disassembly, not measured), it loads `libSceImeBackend` at start-up and calls these functions only from one text-entry module, which it enters only when `/app0/app_config/region_jp.txt` exists; this dump does not have that file. - `public_headers`: the audit and all 64 compile batches pass. They were run by hand here, since the audit takes 34 s on this machine, over ctest's 30 s timeout. - Linux, by wachi35676 on WSL Ubuntu 24.04 with GCC 13.3, this head merged onto `main` `aeff26bd9` ([comment](https://github.com/boykopovar/AnyPS5/pull/10887#issuecomment-6403820411)): `libSceImeBackend` builds with 0 warnings and exports the 22 `sceImeBackend*` symbols; on Windows the same check found the 22 NIDs in the patched module's export table. macOS was not built. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (not applicable) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA05110 #10872 - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-25 08:23:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T08:23:42Z.

Review: APPROVED


The 22 missing imports are added as throwing declarations, and the debt entry makes the unknown signatures and behavior explicit. The author reports import-audit and public-header checks plus a title startup check that did not enter the text-entry path; this approval does not claim runtime behavior for those exports. Product jobs are skipped by repository policy. No blocking issue found in the reviewed declarations.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5642240239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10887#pullrequestreview-5642240239). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T08:23:42Z. **Review:** APPROVED --- The 22 missing imports are added as throwing declarations, and the debt entry makes the unknown signatures and behavior explicit. The author reports import-audit and public-header checks plus a title startup check that did not enter the text-entry path; this approval does not claim runtime behavior for those exports. Product jobs are skipped by repository policy. No blocking issue found in the reviewed declarations.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10887
No description provided.