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

Function cellMsgDialogProgressBarReset

ps3fw/cellMsgDialog.cpp:633–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633error_code cellMsgDialogProgressBarReset(u32 progressBarIndex)
634{
635 cellSysutil.warning("cellMsgDialogProgressBarReset(progressBarIndex=%d)", progressBarIndex);
636
637 if (auto manager = g_fxo->try_get<rsx::overlays::display_manager>())
638 {
639 if (auto dlg = manager->get<rsx::overlays::message_dialog>())
640 {
641 return dlg->progress_bar_reset(progressBarIndex);
642 }
643 }
644
645 const auto dlg = g_fxo->get<msg_info>().get();
646
647 if (!dlg)
648 {
649 return CELL_MSGDIALOG_ERROR_DIALOG_NOT_OPENED;
650 }
651
652 if (progressBarIndex >= dlg->type.progress_bar_count)
653 {
654 return CELL_MSGDIALOG_ERROR_PARAM;
655 }
656
657 Emu.CallFromMainThread([=]
658 {
659 dlg->ProgressBarReset(progressBarIndex);
660 });
661
662 return CELL_OK;
663}
664
665error_code cellMsgDialogProgressBarInc(u32 progressBarIndex, u32 delta)
666{

Callers

nothing calls this directly

Calls 4

progress_bar_resetMethod · 0.80
getMethod · 0.45
CallFromMainThreadMethod · 0.45
ProgressBarResetMethod · 0.45

Tested by

no test coverage detected