mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Use cmdRaw and cmdRawAt in WriteCommandsDialog
This commit is contained in:
parent
87b9741767
commit
647978260a
@ -84,9 +84,9 @@ void DuplicateFromOffsetDialog::refresh()
|
|||||||
|
|
||||||
// Add space every two characters for word wrap in hex sequence
|
// Add space every two characters for word wrap in hex sequence
|
||||||
QRegularExpression re{"(.{2})"};
|
QRegularExpression re{"(.{2})"};
|
||||||
QString bytes = Core()->cmd(QString("p8 %1 @ %2")
|
QString bytes = Core()->cmdRawAt(QString("p8 %1")
|
||||||
.arg(QString::number(getNBytes()))
|
.arg(QString::number(getNBytes())),
|
||||||
.arg(QString::number(offestFrom)))
|
offestFrom)
|
||||||
.replace(re, "\\1 ");
|
.replace(re, "\\1 ");
|
||||||
|
|
||||||
ui->bytesLabel->setText(bytes.trimmed());
|
ui->bytesLabel->setText(bytes.trimmed());
|
||||||
|
Loading…
Reference in New Issue
Block a user