cellOskDialogAbort: always send finished event

No idea if this is really correct, but it fixes the PS-Home OSK dialog freeze.
This commit is contained in:
Megamouse 2022-04-09 23:44:13 +02:00
parent 9279736fe6
commit 20801615f3

View File

@ -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<osk_info>().last_dialog_state = CELL_SYSUTIL_OSKDIALOG_FINISHED;
sysutil_send_system_cmd(CELL_SYSUTIL_OSKDIALOG_FINISHED, 0);