Enable asm.slow by default, Remove some unneeded config

This commit is contained in:
Florian Märkl 2018-02-02 11:56:07 +01:00
parent c99fff72fc
commit 085b858bb6
2 changed files with 2 additions and 28 deletions

View File

@ -774,12 +774,8 @@ void CutterCore::getOpcodes()
void CutterCore::setSettings() void CutterCore::setSettings()
{ {
setConfig("scr.interactive", false); setConfig("scr.interactive", false);
// Intredazting...
//setConfig("asm.linesright", "true");
//setConfig("asm.lineswidth", "15");
//setConfig("asm.functions", "false");
setConfig("hex.pairs", false); setConfig("hex.pairs", false);
setConfig("asm.cmtflgrefs", false);
setConfig("asm.cmtcol", 70); setConfig("asm.cmtcol", 70);
setConfig("asm.xrefs", false); setConfig("asm.xrefs", false);
setConfig("asm.fcnlines", false); setConfig("asm.fcnlines", false);
@ -787,40 +783,18 @@ void CutterCore::setSettings()
setConfig("asm.tabsonce", true); setConfig("asm.tabsonce", true);
setConfig("asm.tabsoff", 5); setConfig("asm.tabsoff", 5);
setConfig("asm.midflags", 2); setConfig("asm.midflags", 2);
//setConfig("asm.bbline", "true");
// asm.offset=false would break reading the offset in DisassemblyWidget
// TODO: remove this when DisassemblyWidget::readDisassemblyOffset() allows it
setConfig("asm.offset", true);
setConfig("anal.hasnext", true); setConfig("anal.hasnext", true);
setConfig("asm.fcncalls", false);
setConfig("asm.calls", false);
setConfig("asm.lines.call", false); setConfig("asm.lines.call", false);
setConfig("asm.flgoff", true); setConfig("asm.flgoff", true);
setConfig("anal.autoname", true); setConfig("anal.autoname", true);
// Highlight current node in graphviz
setConfig("graph.gv.current", true);
// Fucking pancake xD // Fucking pancake xD
setConfig("cfg.fortunes.tts", false); setConfig("cfg.fortunes.tts", false);
// Experimenting with asm options
//setConfig("asm.spacy", "true"); // We need to handle blank lines on scroll
//setConfig("asm.section", "true"); // Breaks the disasm and navigation
//setConfig("asm.invhex", "true"); // Needs further testing
//setConfig("asm.flags", "false"); // Add with default true in future
// Used by the HTML5 graph // Used by the HTML5 graph
setConfig("http.cors", true); setConfig("http.cors", true);
setConfig("http.sandbox", false); setConfig("http.sandbox", false);
//config("http.port", "14170");
// Temporary fixes
//setConfig("http.root","/usr/local/share/radare2/last/www");
//setConfig("http.root","/usr/local/radare2/osx/share/radare2/1.1.0-git/www");
//setConfig("bin.rawstr", "true");
// Colors // Colors
setConfig("scr.color", false); setConfig("scr.color", false);

View File

@ -58,7 +58,7 @@ public:
bool getAsmStackPointer() const { return s.value("asm.stackptr", false).toBool(); } bool getAsmStackPointer() const { return s.value("asm.stackptr", false).toBool(); }
void setAsmStackPointer(bool v) { s.setValue("asm.stackptr", v); } void setAsmStackPointer(bool v) { s.setValue("asm.stackptr", v); }
bool getAsmSlow() const { return s.value("asm.slow", false).toBool(); } bool getAsmSlow() const { return s.value("asm.slow", true).toBool(); }
void setAsmSlow(bool v) { s.setValue("asm.slow", v); } void setAsmSlow(bool v) { s.setValue("asm.slow", v); }
bool getAsmLines() const { return s.value("asm.lines", false).toBool(); } bool getAsmLines() const { return s.value("asm.lines", false).toBool(); }