mirror of
https://github.com/rizinorg/cutter.git
synced 2024-11-23 04:49:49 +00:00
Update Rizin to latest dev (#3262)
* Update rizin to latest dev * Update used RzBin resources API
This commit is contained in:
parent
900b1a3e14
commit
91f40f2f71
2
rizin
2
rizin
@ -1 +1 @@
|
|||||||
Subproject commit 71679b0800c657ad03fa374e989b2cd87433bd29
|
Subproject commit 444000416cc929d4ce67116a46eaeee1d8a5b4fd
|
@ -3805,19 +3805,22 @@ QList<ResourcesDescription> CutterCore::getAllResources()
|
|||||||
if (!bf) {
|
if (!bf) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const RzList *resources = rz_bin_object_get_resources(bf->o);
|
const RzPVector *resources = rz_bin_object_get_resources(bf->o);
|
||||||
|
if (!resources) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QList<ResourcesDescription> resourcesDescriptions;
|
QList<ResourcesDescription> resourcesDescriptions;
|
||||||
|
|
||||||
RzBinResource *r;
|
for (const auto &resource : CutterPVector<RzBinResource>(resources)) {
|
||||||
RzListIter *it;
|
|
||||||
CutterRzListForeach (resources, it, RzBinResource, r) {
|
|
||||||
ResourcesDescription description;
|
ResourcesDescription description;
|
||||||
description.name = r->name;
|
description.name = resource->name;
|
||||||
description.vaddr = r->vaddr;
|
description.vaddr = resource->vaddr;
|
||||||
description.index = r->index;
|
description.index = resource->index;
|
||||||
description.type = r->type;
|
description.type = resource->type;
|
||||||
description.size = r->size;
|
description.size = resource->size;
|
||||||
description.lang = r->language;
|
description.lang = resource->language;
|
||||||
|
|
||||||
resourcesDescriptions << description;
|
resourcesDescriptions << description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user