Update Rizin to latest dev (#3262)

* Update rizin to latest dev

* Update used RzBin resources API
This commit is contained in:
Anton Kochkov 2023-11-08 07:32:12 +08:00 committed by GitHub
parent 900b1a3e14
commit 91f40f2f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 11 deletions

2
rizin

@ -1 +1 @@
Subproject commit 71679b0800c657ad03fa374e989b2cd87433bd29 Subproject commit 444000416cc929d4ce67116a46eaeee1d8a5b4fd

View File

@ -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;
} }