MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / contextAddFunction

Method contextAddFunction

pcsx2-qt/Debugger/DisassemblyView.cpp:265–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void DisassemblyView::contextAddFunction()
266{
267 NewFunctionDialog* dialog = new NewFunctionDialog(cpu(), this);
268 dialog->setName(QString("func_%1").arg(m_selectedAddressStart, 8, 16, QChar('0')));
269 dialog->setAddress(m_selectedAddressStart);
270 dialog->setAttribute(Qt::WA_DeleteOnClose);
271
272 if (m_selectedAddressEnd != m_selectedAddressStart)
273 dialog->setCustomSize(m_selectedAddressEnd - m_selectedAddressStart + 4);
274
275 connect(dialog, &QDialog::accepted, this, [this]() { update(); });
276
277 dialog->open();
278}
279
280void DisassemblyView::contextCopyFunctionName()
281{

Callers

nothing calls this directly

Calls 6

argMethod · 0.80
setAddressMethod · 0.80
setCustomSizeMethod · 0.80
updateFunction · 0.50
setNameMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected