feat(ime): implement sceImeKeyboardGetResourceId #845

Closed
merwie wants to merge 1 commit from upstream-pr/845 into main
merwie commented 2026-10-06 09:00:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-06T09:00:26Z.


What

Implements sceImeKeyboardGetResourceId, which Unity titles such as PPSA12544 query at startup.

  • The resource id array is cleared and its user id set.
  • A user without an open IME keyboard gets NOT_OPENED (0x80bc0002).
  • A user with an open keyboard gets CONNECTION_FAILED (0x80bc0004), because no USB keyboard input reaches the IME. shadPS4 answers the same way. This matches sceImeKeyboardGetInfo on main, which reports no resource id for every id.
  • A null array returns INVALID_ADDRESS.

Tested

Windows 11, Radeon RX 9070 XT, PPSA12544 (Hollow Knight: Silksong; bring-up: #726): the title continues past the call. Non-GPU ctest passes; GuestImeParameters covers the null array, the closed and the open keyboard.

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 in TechnicalDebt
  • 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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4756503510 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/845). Originally posted by [merwie](https://github.com/merwie) on 2026-10-06T09:00:26Z. --- ### What Implements `sceImeKeyboardGetResourceId`, which Unity titles such as PPSA12544 query at startup. - The resource id array is cleared and its user id set. - A user without an open IME keyboard gets `NOT_OPENED` (`0x80bc0002`). - A user with an open keyboard gets `CONNECTION_FAILED` (`0x80bc0004`), because no USB keyboard input reaches the IME. shadPS4 answers the same way. This matches `sceImeKeyboardGetInfo` on `main`, which reports no resource id for every id. - A null array returns `INVALID_ADDRESS`. ### Tested Windows 11, Radeon RX 9070 XT, PPSA12544 (Hollow Knight: Silksong; bring-up: #726): the title continues past the call. Non-GPU `ctest` passes; `GuestImeParameters` covers the null array, the closed and the open keyboard. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merwie commented 2026-10-06 09:00:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-06T09:00:47Z.


Closing: this duplicates #696, which implements the same behaviour and validates the user id too. I missed it in my overlap search, sorry for the noise.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6012922726 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/845#issuecomment-6012922726). Originally posted by [merwie](https://github.com/merwie) on 2026-10-06T09:00:47Z. --- Closing: this duplicates #696, which implements the same behaviour and validates the user id too. I missed it in my overlap search, sorry for the noise.
github-actions[bot] commented 2026-10-06 09:00:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T09:00:48Z.


Progress report (e76c70f → 671b41f)

📈 System libraries: 86.8% (+0.04%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceIme sceImeKeyboardGetResourceId
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6012923161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/845#issuecomment-6012923161). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T09:00:48Z. --- <!-- progress-report --> ### Progress report (e76c70f → 671b41f) 📈 **System libraries**: 86.8% (+0.04%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceIme | `sceImeKeyboardGetResourceId` | </details>

Pull request closed

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!845
No description provided.