MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / close_msg_dialog

Function close_msg_dialog

ps3fw/cellMsgDialog.cpp:313–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void close_msg_dialog()
314{
315 cellSysutil.notice("close_msg_dialog()");
316
317 if (auto manager = g_fxo->try_get<rsx::overlays::display_manager>())
318 {
319 if (auto dlg = manager->get<rsx::overlays::message_dialog>())
320 {
321 g_fxo->get<msg_dlg_thread>().wait_until = 0;
322 dlg->close(false, true); // this doesn't call on_close
323 sysutil_send_system_cmd(CELL_SYSUTIL_DRAWING_END, 0);
324 return;
325 }
326 }
327
328 if (const auto dlg = g_fxo->get<msg_info>().get())
329 {
330 dlg->state = MsgDialogState::Close;
331 g_fxo->get<msg_dlg_thread>().wait_until = 0;
332 g_fxo->get<msg_info>().remove(); // this shouldn't call on_close
333 input::SetIntercepted(false); // so we need to reenable the pads here
334 sysutil_send_system_cmd(CELL_SYSUTIL_DRAWING_END, 0);
335 }
336}
337
338void exit_game(s32 /* buttonType*/, vm::ptr<void> /* userData*/)
339{

Callers 1

Calls 5

sysutil_send_system_cmdFunction · 0.85
SetInterceptedFunction · 0.50
closeMethod · 0.45
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected