mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +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.type = typeObject[RJsonKey::type].toString();
|
||||||
exp.size = (int)typeObject[RJsonKey::size].toVariant().toULongLong();
|
exp.size = (int)typeObject[RJsonKey::size].toVariant().toULongLong();
|
||||||
exp.category = tr("Primitive");
|
exp.category = "Primitive";
|
||||||
primitiveTypes << exp;
|
primitiveTypes << exp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -275,7 +275,12 @@ void TypesWidget::on_actionExport_Types_triggered()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QTextStream fileOut(&file);
|
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();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user