mirror of
https://github.com/rizinorg/cutter.git
synced 2024-11-26 22:31:08 +00:00
Exporting types work now
This commit is contained in:
parent
430354c9cd
commit
252dba9312
@ -3601,7 +3601,7 @@ QList<TypeDescription> CutterCore::getAllPrimitiveTypes()
|
||||
|
||||
exp.type = typeObject[RJsonKey::type].toString();
|
||||
exp.size = (int)typeObject[RJsonKey::size].toVariant().toULongLong();
|
||||
exp.category = tr("Primitive");
|
||||
exp.category = "Primitive";
|
||||
primitiveTypes << exp;
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,12 @@ void TypesWidget::on_actionExport_Types_triggered()
|
||||
return;
|
||||
}
|
||||
QTextStream fileOut(&file);
|
||||
fileOut << Core()->cmdRaw("tc");
|
||||
for (const auto &type : types) {
|
||||
if (type.category == "Primitive"){
|
||||
continue;
|
||||
}
|
||||
fileOut << Core()->getTypeAsC(type.type, type.category) << "\n";
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user