This commit is contained in:
xarkes 2018-01-31 11:06:45 +01:00
parent 6b644d6ed6
commit dc3fe4f3c4

View File

@ -170,7 +170,7 @@ void DisassemblerGraphView::loadCurrentGraph()
RichTextPainter::List richText; RichTextPainter::List richText;
QString disas; QString disas;
if (Core()->getConfigb("asm.emu")) if (Core()->getConfigb("asm.esil"))
disas = op["esil"].toString(); disas = op["esil"].toString();
else else
disas = op["disasm"].toString(); disas = op["disasm"].toString();
@ -209,13 +209,9 @@ void DisassemblerGraphView::loadCurrentGraph()
int blockLength = Config()->getGraphBlockMaxChars() + Core()->getConfigb("asm.bytes") * 24 + Core()->getConfigb("asm.emu") * 10; int blockLength = Config()->getGraphBlockMaxChars() + Core()->getConfigb("asm.bytes") * 24 + Core()->getConfigb("asm.emu") * 10;
i.text = Text(RichTextPainter::cropped(richText, blockLength, "...", &cropped)); i.text = Text(RichTextPainter::cropped(richText, blockLength, "...", &cropped));
if(cropped) if(cropped)
{
i.fullText = richText; i.fullText = richText;
}
else else
{
i.fullText = Text(); i.fullText = Text();
}
db.instrs.push_back(i); db.instrs.push_back(i);
} }
disassembly_blocks[db.entry] = db; disassembly_blocks[db.entry] = db;