convert to api for aht

This commit is contained in:
billow 2022-05-14 17:08:52 +08:00 committed by Anton Kochkov
parent 6e07f4d97a
commit fb82370dfc

View File

@ -951,7 +951,12 @@ void CutterCore::applyStructureOffset(const QString &structureOffset, RVA offset
offset = getOffset(); offset = getOffset();
} }
this->cmdRawAt("aht " + structureOffset, offset); applyAtSeek(
[&]() {
CORE_LOCK();
rz_core_analysis_hint_set_offset(core, structureOffset.toUtf8().constData());
},
offset);
emit instructionChanged(offset); emit instructionChanged(offset);
} }