Fix flagspace for initial script

This commit is contained in:
Florian Märkl 2018-07-24 19:50:55 +02:00
parent 2987bd833f
commit b74560eb0f
3 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 :)"));