mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-30 16:25: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;
|
ResourcesDescription res;
|
||||||
|
|
||||||
res.name = resourceObject[RJsonKey::name].toInt();
|
res.name = resourceObject[RJsonKey::name].toString();
|
||||||
res.vaddr = resourceObject[RJsonKey::vaddr].toVariant().toULongLong();
|
res.vaddr = resourceObject[RJsonKey::vaddr].toVariant().toULongLong();
|
||||||
res.index = resourceObject[RJsonKey::index].toVariant().toULongLong();
|
res.index = resourceObject[RJsonKey::index].toVariant().toULongLong();
|
||||||
res.type = resourceObject[RJsonKey::type].toString();
|
res.type = resourceObject[RJsonKey::type].toString();
|
||||||
|
@ -239,7 +239,7 @@ struct AnalVTableDescription {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct ResourcesDescription {
|
struct ResourcesDescription {
|
||||||
int name;
|
QString name;
|
||||||
RVA vaddr;
|
RVA vaddr;
|
||||||
ut64 index;
|
ut64 index;
|
||||||
QString type;
|
QString type;
|
||||||
|
@ -27,7 +27,7 @@ QVariant ResourcesModel::data(const QModelIndex &index, int role) const
|
|||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
switch (index.column()) {
|
switch (index.column()) {
|
||||||
case NAME:
|
case NAME:
|
||||||
return QString::number(res.name);
|
return res.name;
|
||||||
case VADDR:
|
case VADDR:
|
||||||
return RAddressString(res.vaddr);
|
return RAddressString(res.vaddr);
|
||||||
case INDEX:
|
case INDEX:
|
||||||
|
Loading…
Reference in New Issue
Block a user