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) {
|
||||
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;
|
||||
|
||||
RzBinResource *r;
|
||||
RzListIter *it;
|
||||
CutterRzListForeach (resources, it, RzBinResource, r) {
|
||||
for (const auto &resource : CutterPVector<RzBinResource>(resources)) {
|
||||
ResourcesDescription description;
|
||||
description.name = r->name;
|
||||
description.vaddr = r->vaddr;
|
||||
description.index = r->index;
|
||||
description.type = r->type;
|
||||
description.size = r->size;
|
||||
description.lang = r->language;
|
||||
description.name = resource->name;
|
||||
description.vaddr = resource->vaddr;
|
||||
description.index = resource->index;
|
||||
description.type = resource->type;
|
||||
description.size = resource->size;
|
||||
description.lang = resource->language;
|
||||
|
||||
resourcesDescriptions << description;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user