mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Exit AnalTask if interrupted
This commit is contained in:
parent
4ce04c4f95
commit
5dbaefb176
@ -52,6 +52,10 @@ void AnalTask::runTask()
|
||||
}
|
||||
}
|
||||
|
||||
if (isInterrupted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!options.os.isNull()) {
|
||||
Core()->cmd("e asm.os=" + options.os);
|
||||
}
|
||||
@ -61,10 +65,18 @@ void AnalTask::runTask()
|
||||
Core()->loadPDB(options.pdbFile);
|
||||
}
|
||||
|
||||
if (isInterrupted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!options.script.isNull()) {
|
||||
Core()->loadScript(options.script);
|
||||
}
|
||||
|
||||
if (isInterrupted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.endian != InitialOptions::Endianness::Auto) {
|
||||
Core()->setEndianness(options.endian == InitialOptions::Endianness::Big);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user