mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-29 15:55:04 +00:00
Resource names are strings (#2151)
This commit is contained in:
parent
56543fa0c7
commit
a4cf66d13c
@ -3121,7 +3121,7 @@ QList<ResourcesDescription> CutterCore::getAllResources()
|
||||
|
||||
ResourcesDescription res;
|
||||
|
||||
res.name = resourceObject[RJsonKey::name].toInt();
|
||||
res.name = resourceObject[RJsonKey::name].toString();
|
||||
res.vaddr = resourceObject[RJsonKey::vaddr].toVariant().toULongLong();
|
||||
res.index = resourceObject[RJsonKey::index].toVariant().toULongLong();
|
||||
res.type = resourceObject[RJsonKey::type].toString();
|
||||
|
@ -239,7 +239,7 @@ struct AnalVTableDescription {
|
||||
};
|
||||
|
||||
struct ResourcesDescription {
|
||||
int name;
|
||||
QString name;
|
||||
RVA vaddr;
|
||||
ut64 index;
|
||||
QString type;
|
||||
|
@ -27,7 +27,7 @@ QVariant ResourcesModel::data(const QModelIndex &index, int role) const
|
||||
case Qt::DisplayRole:
|
||||
switch (index.column()) {
|
||||
case NAME:
|
||||
return QString::number(res.name);
|
||||
return res.name;
|
||||
case VADDR:
|
||||
return RAddressString(res.vaddr);
|
||||
case INDEX:
|
||||
|
Loading…
Reference in New Issue
Block a user