Skip to content

Commit

Permalink
cellOskDialogAbort: always send finished event
Browse files Browse the repository at this point in the history
No idea if this is really correct, but it fixes the PS-Home OSK dialog freeze.
  • Loading branch information
Megamouse committed Apr 9, 2022
1 parent 30aeefd commit 3c97fc5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rpcs3/Emu/Cell/Modules/cellOskDialog.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 3c97fc5

Please sign in to comment.