feat(libSceIme): report the closed IME panel #794

Merged
CnRJay merged 1 commit from upstream-pr/794 into main 2026-10-06 03:31:30 +00:00
CnRJay commented 2026-10-06 01:14:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-06T01:14:12Z.


sceImeOpen still throws, so the IME panel is never open. With this change, sceImeClose, sceImeSetCaret, sceImeSetText and sceImeSetTextGeometry return SCE_IME_ERROR_NOT_OPENED (0x80BC0002) instead of throwing.

They check whether the panel is open before looking at their arguments, so sceImeSetCaret(nullptr) also returns NOT_OPENED. shadPS4 checks in the same order, and sceImeKeyboardGetInfo already reports a closed keyboard this way.

guest_ime_parameters now covers all four calls. The full ctest suite passes, and libraries go from 2712 to 2716 out of 3342. This doesn't overlap with boykopovar/AnyPS5#696, which covers sceImeKeyboardGetResourceId.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4752809977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/794). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-06T01:14:12Z. --- `sceImeOpen` still throws, so the IME panel is never open. With this change, `sceImeClose`, `sceImeSetCaret`, `sceImeSetText` and `sceImeSetTextGeometry` return `SCE_IME_ERROR_NOT_OPENED` (0x80BC0002) instead of throwing. They check whether the panel is open before looking at their arguments, so `sceImeSetCaret(nullptr)` also returns `NOT_OPENED`. shadPS4 checks in the same order, and `sceImeKeyboardGetInfo` already reports a closed keyboard this way. `guest_ime_parameters` now covers all four calls. The full ctest suite passes, and libraries go from 2712 to 2716 out of 3342. This doesn't overlap with boykopovar/AnyPS5#696, which covers `sceImeKeyboardGetResourceId`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-06 01:14:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T01:14:35Z.


Progress report (901ddfd → a74f282)

📈 System libraries: 81.63% (+0.12%, +4 implemented functions)

✅ 4 implemented
Library Name
libSceIme sceImeClose_nid_postfix
libSceIme sceImeSetCaret
libSceIme sceImeSetText
libSceIme sceImeSetTextGeometry
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6007273224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/794#issuecomment-6007273224). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T01:14:35Z. --- <!-- progress-report --> ### Progress report (901ddfd → a74f282) 📈 **System libraries**: 81.63% (+0.12%, +4 implemented functions) <details> <summary>✅ 4 implemented</summary> | Library | Name | | - | - | | libSceIme | `sceImeClose_nid_postfix` | | libSceIme | `sceImeSetCaret` | | libSceIme | `sceImeSetText` | | libSceIme | `sceImeSetTextGeometry` | </details>
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!794
No description provided.