Add options for BreakpointWidget, WatchWidget, and CheatSearches to send address to Memory Widget

This commit is contained in:
TryTwo
2022-05-27 17:34:47 -07:00
parent 70bf89fa59
commit 177dae6a1a
9 changed files with 25 additions and 4 deletions

View File

@ -448,8 +448,12 @@ void CheatSearchWidget::OnAddressTableContextMenu()
if (m_address_table->selectedItems().isEmpty())
return;
auto* item = m_address_table->selectedItems()[0];
const u32 address = item->data(ADDRESS_TABLE_ADDRESS_ROLE).toUInt();
QMenu* menu = new QMenu(this);
menu->addAction(tr("Show in memory"), [this, address] { emit ShowMemory(address); });
menu->addAction(tr("Generate Action Replay Code"), this, &CheatSearchWidget::GenerateARCode);
menu->exec(QCursor::pos());