mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Use Rizin seek API instead of commands (#2581)
This commit is contained in:
parent
0229e7ed8b
commit
c82fc5b44f
@ -889,9 +889,11 @@ void CutterCore::seek(ut64 offset)
|
||||
return;
|
||||
}
|
||||
|
||||
// use cmd and not cmdRaw to make sure seekChanged is emitted
|
||||
cmd(QString("s %1").arg(offset));
|
||||
// cmd already does emit seekChanged(core_->offset);
|
||||
RVA o_offset = core->offset;
|
||||
rz_core_seek_and_save(core, offset, true);
|
||||
if (o_offset != core->offset) {
|
||||
updateSeek();
|
||||
}
|
||||
}
|
||||
|
||||
void CutterCore::showMemoryWidget()
|
||||
@ -919,14 +921,16 @@ void CutterCore::seek(QString thing)
|
||||
|
||||
void CutterCore::seekPrev()
|
||||
{
|
||||
// Use cmd because cmdRaw does not work with seek history
|
||||
cmd("s-");
|
||||
CORE_LOCK ();
|
||||
rz_core_seek_undo (core);
|
||||
updateSeek();
|
||||
}
|
||||
|
||||
void CutterCore::seekNext()
|
||||
{
|
||||
// Use cmd because cmdRaw does not work with seek history
|
||||
cmd("s+");
|
||||
CORE_LOCK ();
|
||||
rz_core_seek_redo (core);
|
||||
updateSeek();
|
||||
}
|
||||
|
||||
void CutterCore::updateSeek()
|
||||
|
Loading…
Reference in New Issue
Block a user