fix(libSceIme): return error codes instead of throwing on duplicate open or close #5856
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5856"
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 ErenYeager1836 on 2026-10-14T13:52:57Z.
What
Return standard SCE error codes instead of throwing
std::logic_errorinsceImeKeyboardOpen(ErrorAlreadyOpened = 0x80bc0001) andsceImeKeyboardClose(ErrorNotOpened = 0x80bc0002). Cover duplicate opening and closing when not opened in guest tests.Tested
Windows 11, guest IME keyboard tests.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:10:33Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestImeKeyboard.cppcore/libs/prx/libSceIme/Export.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T13:47:04Z.
Checked against KytyPS5 (
ImeKeyboardOpenreturns BUSY0x80bc0001,ImeKeyboardClosereturns NOT_OPENED0x80bc0002); the new test checks fail without the change, andguest_ime_keyboardplus the rest of the libSceIme/libs ctest pass.Added on your branch:
ErrorAlreadyOpenedwas a second name for the existingErrorBusy(same value): reuseErrorBusy.docs/dev/debt/libSceIme.mdfor the new return values (PS5 result unverified; per-user state here vs one keyboard in Kyty).Merging once CI is green.