mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
Set Analysis configuration before executing Analysis commands (#1048)
* Set analysis configurations defined by the user before executing the analysis commands (fixes #1047) * Remove (probably) unnecessary lines which reset settings determined by the user
This commit is contained in:
parent
8e76a9aca5
commit
4505d187c4
@ -378,10 +378,6 @@ void MainWindow::openProject(const QString &project_name)
|
||||
void MainWindow::finalizeOpen()
|
||||
{
|
||||
core->getOpcodes();
|
||||
|
||||
// Override any incorrect setting saved in the project
|
||||
core->setSettings();
|
||||
|
||||
core->updateSeek();
|
||||
core->message(tr(" > Populating UI"));
|
||||
refreshAll();
|
||||
|
@ -178,6 +178,16 @@ QList<QString> InitialOptionsDialog::getSelectedAdvancedAnalCmds()
|
||||
{
|
||||
QList<QString> advanced = QList<QString>();
|
||||
if (ui->analSlider->value() == 3) {
|
||||
// Enable analysis configurations before executing analysis commands
|
||||
if (ui->jmptbl->isChecked()) {
|
||||
advanced << "e! anal.jmptbl";
|
||||
}
|
||||
if (ui->pushret->isChecked()) {
|
||||
advanced << "e! anal.pushret";
|
||||
}
|
||||
if (ui->hasnext->isChecked()) {
|
||||
advanced << "e! anal.hasnext";
|
||||
}
|
||||
if (ui->aa_symbols->isChecked()) {
|
||||
advanced << "aa";
|
||||
}
|
||||
@ -208,15 +218,6 @@ QList<QString> InitialOptionsDialog::getSelectedAdvancedAnalCmds()
|
||||
if (ui->aap_preludes->isChecked()) {
|
||||
advanced << "aap";
|
||||
}
|
||||
if (ui->jmptbl->isChecked()) {
|
||||
advanced << "e! anal.jmptbl";
|
||||
}
|
||||
if (ui->pushret->isChecked()) {
|
||||
advanced << "e! anal.pushret";
|
||||
}
|
||||
if (ui->hasnext->isChecked()) {
|
||||
advanced << "e! anal.hasnext";
|
||||
}
|
||||
}
|
||||
return advanced;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user