mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DolphinQt: add a 'add to watch' context menu item that allows you to add a memory location found in a cheat search to be added to the watch list
This commit is contained in:
parent
7d7fcdddd3
commit
c8a6ff6309
5 changed files with 9 additions and 0 deletions
|
@ -454,6 +454,10 @@ void CheatSearchWidget::OnAddressTableContextMenu()
|
|||
QMenu* menu = new QMenu(this);
|
||||
|
||||
menu->addAction(tr("Show in memory"), [this, address] { emit ShowMemory(address); });
|
||||
menu->addAction(tr("Add to watch"), this, [this, address] {
|
||||
const QString name = QStringLiteral("mem_%1").arg(address, 8, 16, QLatin1Char('0'));
|
||||
emit RequestWatch(name, address);
|
||||
});
|
||||
menu->addAction(tr("Generate Action Replay Code"), this, &CheatSearchWidget::GenerateARCode);
|
||||
|
||||
menu->exec(QCursor::pos());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue