convert to api for aht

This commit is contained in:
billow 2022-05-14 17:08:52 +08:00 committed by Anton Kochkov
parent 3d39cf625f
commit d6ce8048c5

View File

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