feat(libSceIme): implement sceImeOpen and panel lifecycle #1008

Closed
Kikoarl wants to merge 1 commit from upstream-pr/1008 into main
Kikoarl commented 2026-10-06 23:09:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T23:09:32Z.


What

Implement sceImeOpen and panel lifecycle management in libSceIme:

  • Achieves 100% completion of libSceIme exports.
  • Symmetric lifecycle counterpart to sceImeClose, tracking panel state under mutex protection.
  • Validates parameter pointer (0x80bc0031), type (0x80bc0011), and option flags (0x80bc0015).
  • Rejects repeated opens when already open with 0x80bc0001.
  • Enables sceImeSetCaret, sceImeSetText, and sceImeSetTextGeometry to succeed when the panel is opened and reject with 0x80bc0002 when closed.
  • Documented in docs/dev/TechnicalDebt.md.
  • Added unit tests in core/libs/tests/GuestImeParameters.cpp.

Why

libSceIme had all functions implemented except sceImeOpen, leaving the IME panel in a permanently closed state where sceImeClose and the text/caret setters could only report not opened. Implementing sceImeOpen and the panel lifecycle allows titles opening the IME panel to proceed and configure input settings.

How tested

Built and verified unit tests:

ninja libs guest_ime_parameters_tests guest_ime_keyboard_tests
ctest -R "guest_ime" --output-on-failure

Passed guest_ime_parameters and guest_ime_keyboard (100% pass).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4765649671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1008). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T23:09:32Z. --- ### What Implement `sceImeOpen` and panel lifecycle management in `libSceIme`: - Achieves 100% completion of `libSceIme` exports. - Symmetric lifecycle counterpart to `sceImeClose`, tracking panel state under mutex protection. - Validates parameter pointer (`0x80bc0031`), type (`0x80bc0011`), and option flags (`0x80bc0015`). - Rejects repeated opens when already open with `0x80bc0001`. - Enables `sceImeSetCaret`, `sceImeSetText`, and `sceImeSetTextGeometry` to succeed when the panel is opened and reject with `0x80bc0002` when closed. - Documented in `docs/dev/TechnicalDebt.md`. - Added unit tests in `core/libs/tests/GuestImeParameters.cpp`. ### Why `libSceIme` had all functions implemented except `sceImeOpen`, leaving the IME panel in a permanently closed state where `sceImeClose` and the text/caret setters could only report not opened. Implementing `sceImeOpen` and the panel lifecycle allows titles opening the IME panel to proceed and configure input settings. ### How tested Built and verified unit tests: ```bash ninja libs guest_ime_parameters_tests guest_ime_keyboard_tests ctest -R "guest_ime" --output-on-failure ``` Passed `guest_ime_parameters` and `guest_ime_keyboard` (100% pass).
github-actions[bot] commented 2026-10-06 23:09:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T23:09:55Z.


Progress report (ab9437e → 8a448bc)

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

✅ 1 implemented
Library Name
libSceIme sceImeOpen_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6027116146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1008#issuecomment-6027116146). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T23:09:55Z. --- <!-- progress-report --> ### Progress report (ab9437e → 8a448bc) 📈 **System libraries**: 87.56% (+0.04%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceIme | `sceImeOpen_nid_postfix` | </details>
oneandonlydean commented 2026-10-07 00:02:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-07T00:02:44Z.


Thanks. I'm closing this one for now, for two reasons:

  • No title is named, and the owner has asked us to merge only changes a title needs.
  • sceImeOpen returning OK without showing a panel or delivering IME events turns today's clear stop into a silent wait: a title that opens the IME would wait for input or a close event that never arrives. If a title does stop here, the open path needs those events (or a listed silent stub, if the title only needs the call to succeed), not just an open flag.

If a title stops at sceImeOpen on main, please reopen it (or open a new PR) with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6027797977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1008#issuecomment-6027797977). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-07T00:02:44Z. --- Thanks. I'm closing this one for now, for two reasons: - No title is named, and the owner has asked us to merge only changes a title needs. - `sceImeOpen` returning OK without showing a panel or delivering IME events turns today's clear stop into a silent wait: a title that opens the IME would wait for input or a close event that never arrives. If a title does stop here, the open path needs those events (or a listed silent stub, if the title only needs the call to succeed), not just an open flag. If a title stops at `sceImeOpen` on main, please reopen it (or open a new PR) with the title ID and the log line.

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