mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix crash in memory viewer launcher (#17152)
This commit is contained in:
parent
75b728be7e
commit
cf1e53f9c8
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ instruction_editor_dialog::instruction_editor_dialog(QWidget *parent, u32 _pc, C
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, m_pc(_pc)
|
, m_pc(_pc)
|
||||||
, m_disasm(_disasm->copy_type_erased())
|
, m_disasm(_disasm->copy_type_erased())
|
||||||
, m_get_cpu(std::move(func))
|
, m_get_cpu(func ? std::move(func) : std::function<cpu_thread*()>(FN(nullptr)))
|
||||||
{
|
{
|
||||||
setWindowTitle(tr("Edit instruction"));
|
setWindowTitle(tr("Edit instruction"));
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
|
@ -35,7 +35,7 @@ constexpr auto qstr = QString::fromStdString;
|
||||||
memory_viewer_panel::memory_viewer_panel(QWidget* parent, std::shared_ptr<CPUDisAsm> disasm, u32 addr, std::function<cpu_thread*()> func)
|
memory_viewer_panel::memory_viewer_panel(QWidget* parent, std::shared_ptr<CPUDisAsm> disasm, u32 addr, std::function<cpu_thread*()> func)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, m_addr(addr)
|
, m_addr(addr)
|
||||||
, m_get_cpu(std::move(func))
|
, m_get_cpu(func ? std::move(func) : std::function<cpu_thread*()>(FN(nullptr)))
|
||||||
, m_type([&]()
|
, m_type([&]()
|
||||||
{
|
{
|
||||||
const auto cpu = m_get_cpu();
|
const auto cpu = m_get_cpu();
|
||||||
|
|
|
@ -62,7 +62,7 @@ enum registers : int
|
||||||
register_editor_dialog::register_editor_dialog(QWidget *parent, CPUDisAsm* _disasm, std::function<cpu_thread*()> func)
|
register_editor_dialog::register_editor_dialog(QWidget *parent, CPUDisAsm* _disasm, std::function<cpu_thread*()> func)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, m_disasm(_disasm)
|
, m_disasm(_disasm)
|
||||||
, m_get_cpu(std::move(func))
|
, m_get_cpu(func ? std::move(func) : std::function<cpu_thread*()>(FN(nullptr)))
|
||||||
{
|
{
|
||||||
setWindowTitle(tr("Edit registers"));
|
setWindowTitle(tr("Edit registers"));
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue