mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 16:47:26 +00:00
Fix flagspace for initial script
This commit is contained in:
parent
2987bd833f
commit
b74560eb0f
@ -71,6 +71,14 @@ void AnalTask::runTask()
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.endian != InitialOptions::Endianness::Auto) {
|
||||
Core()->setEndianness(options.endian == InitialOptions::Endianness::Big);
|
||||
}
|
||||
|
||||
Core()->setBBSize(options.bbsize);
|
||||
|
||||
Core()->cmd("fs *");
|
||||
|
||||
if (!options.script.isNull()) {
|
||||
log(tr("Executing script...\n"));
|
||||
Core()->loadScript(options.script);
|
||||
@ -80,12 +88,6 @@ void AnalTask::runTask()
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.endian != InitialOptions::Endianness::Auto) {
|
||||
Core()->setEndianness(options.endian == InitialOptions::Endianness::Big);
|
||||
}
|
||||
|
||||
Core()->setBBSize(options.bbsize);
|
||||
|
||||
// Use prj.simple as default as long as regular projects are broken
|
||||
Core()->setConfig("prj.simple", true);
|
||||
|
||||
|
@ -1690,8 +1690,9 @@ QList<DisassemblyLine> CutterCore::disassembleLines(RVA offset, int lines)
|
||||
|
||||
void CutterCore::loadScript(const QString &scriptname)
|
||||
{
|
||||
r_core_cmd_file(core_, scriptname.toStdString().data());
|
||||
r_core_cmd_file(core_, scriptname.toUtf8().constData());
|
||||
}
|
||||
|
||||
QString CutterCore::getVersionInformation()
|
||||
{
|
||||
int i;
|
||||
|
@ -359,9 +359,6 @@ void MainWindow::finalizeOpen()
|
||||
core->setSettings();
|
||||
|
||||
addOutput(tr(" > Populating UI"));
|
||||
// FIXME: initialization order frakup. the next line is needed so that the
|
||||
// comments widget displays the function names.
|
||||
core->cmd("fs sections");
|
||||
refreshAll();
|
||||
|
||||
addOutput(tr(" > Finished, happy reversing :)"));
|
||||
|
Loading…
Reference in New Issue
Block a user