Skip to content

Commit

Permalink
cellMsgDialogAbort: don't call on_close and properly re-enable pads
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Jun 1, 2019
1 parent cafa452 commit f501dc6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp
Expand Up @@ -389,7 +389,7 @@ error_code cellMsgDialogAbort()
{
if (auto dlg = manager->get<rsx::overlays::message_dialog>())
{
dlg->close();
dlg->close(false);
return CELL_OK;
}
}
Expand All @@ -406,7 +406,9 @@ error_code cellMsgDialogAbort()
return CELL_SYSUTIL_ERROR_BUSY;
}

verify(HERE), fxm::remove<MsgDialogBase>();
verify(HERE), fxm::remove<MsgDialogBase>(); // this shouldn't call on_close
pad::SetIntercepted(false); // so we need to reenable the pads here

return CELL_OK;
}

Expand Down
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/Overlays/overlays.cpp
Expand Up @@ -305,7 +305,7 @@ namespace rsx
return 0;
}

void user_interface::close()
void user_interface::close(bool use_callback)
{
// Force unload
exit = true;
Expand All @@ -322,7 +322,7 @@ namespace rsx

pad::SetIntercepted(false);

if (on_close)
if (on_close && use_callback)
on_close(return_code);
}

Expand Down
2 changes: 1 addition & 1 deletion rpcs3/Emu/RSX/Overlays/overlays.h
Expand Up @@ -89,7 +89,7 @@ namespace rsx
close();
}

void close();
void close(bool use_callback = true);

s32 run_input_loop();
};
Expand Down

0 comments on commit f501dc6

Please sign in to comment.