From 20801615f38a9d734bd16e396333dab31df37f20 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 9 Apr 2022 23:44:13 +0200 Subject: [PATCH] cellOskDialogAbort: always send finished event No idea if this is really correct, but it fixes the PS-Home OSK dialog freeze. --- rpcs3/Emu/Cell/Modules/cellOskDialog.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellOskDialog.cpp b/rpcs3/Emu/Cell/Modules/cellOskDialog.cpp index a10c7caa5f..e50be91740 100644 --- a/rpcs3/Emu/Cell/Modules/cellOskDialog.cpp +++ b/rpcs3/Emu/Cell/Modules/cellOskDialog.cpp @@ -524,14 +524,12 @@ error_code cellOskDialogAbort() return CELL_OK; }); - if (result != CELL_OK) + if (result == CELL_OK) { - return result; + osk->osk_input_result = CELL_OSKDIALOG_INPUT_FIELD_RESULT_ABORT; + osk->Close(FAKE_CELL_OSKDIALOG_CLOSE_ABORT); } - osk->osk_input_result = CELL_OSKDIALOG_INPUT_FIELD_RESULT_ABORT; - osk->Close(FAKE_CELL_OSKDIALOG_CLOSE_ABORT); - g_fxo->get().last_dialog_state = CELL_SYSUTIL_OSKDIALOG_FINISHED; sysutil_send_system_cmd(CELL_SYSUTIL_OSKDIALOG_FINISHED, 0);