Use cmdRaw and cmdRawAt in WriteCommandsDialog

This commit is contained in:
itayc0hen 2020-03-20 20:12:37 +02:00 committed by Itay Cohen
parent 87b9741767
commit 647978260a

View File

@ -84,9 +84,9 @@ void DuplicateFromOffsetDialog::refresh()
// Add space every two characters for word wrap in hex sequence
QRegularExpression re{"(.{2})"};
QString bytes = Core()->cmd(QString("p8 %1 @ %2")
.arg(QString::number(getNBytes()))
.arg(QString::number(offestFrom)))
QString bytes = Core()->cmdRawAt(QString("p8 %1")
.arg(QString::number(getNBytes())),
offestFrom)
.replace(re, "\\1 ");
ui->bytesLabel->setText(bytes.trimmed());