diff --git a/rpcs3/Emu/Cell/Modules/cellMsgDialog.h b/rpcs3/Emu/Cell/Modules/cellMsgDialog.h index bc1d463896..6f989f0af2 100644 --- a/rpcs3/Emu/Cell/Modules/cellMsgDialog.h +++ b/rpcs3/Emu/Cell/Modules/cellMsgDialog.h @@ -84,6 +84,7 @@ public: virtual ~MsgDialogBase(); virtual void Create(const std::string& msg) = 0; virtual void CreateOsk(const std::string& msg, char16_t* osk_text, u32 charlimit) = 0; + virtual void SetMsg(const std::string& msg) = 0; virtual void ProgressBarSetMsg(u32 progressBarIndex, const std::string& msg) = 0; virtual void ProgressBarReset(u32 progressBarIndex) = 0; virtual void ProgressBarInc(u32 progressBarIndex, u32 delta) = 0; diff --git a/rpcs3/rpcs3qt/msg_dialog_frame.cpp b/rpcs3/rpcs3qt/msg_dialog_frame.cpp index 820632a1d5..fd28a9b145 100644 --- a/rpcs3/rpcs3qt/msg_dialog_frame.cpp +++ b/rpcs3/rpcs3qt/msg_dialog_frame.cpp @@ -339,6 +339,14 @@ msg_dialog_frame::~msg_dialog_frame() } } +void msg_dialog_frame::SetMsg(const std::string& msg) +{ + if (m_dialog) + { + m_text->setText(qstr(msg)); + } +} + void msg_dialog_frame::ProgressBarSetMsg(u32 index, const std::string& msg) { if (m_dialog) diff --git a/rpcs3/rpcs3qt/msg_dialog_frame.h b/rpcs3/rpcs3qt/msg_dialog_frame.h index 6c2f037250..52deb5bbfd 100644 --- a/rpcs3/rpcs3qt/msg_dialog_frame.h +++ b/rpcs3/rpcs3qt/msg_dialog_frame.h @@ -63,6 +63,7 @@ public: ~msg_dialog_frame(); virtual void Create(const std::string& msg) override; virtual void CreateOsk(const std::string& msg, char16_t* osk_text, u32 charlimit) override; + virtual void SetMsg(const std::string& msg) override; virtual void ProgressBarSetMsg(u32 progressBarIndex, const std::string& msg) override; virtual void ProgressBarReset(u32 progressBarIndex) override; virtual void ProgressBarInc(u32 progressBarIndex, u32 delta) override;