Skip to content

Commit

Permalink
Update Rizin to latest dev (rizinorg#3262)
Browse files Browse the repository at this point in the history
* Update rizin to latest dev

* Update used RzBin resources API
  • Loading branch information
XVilka authored Nov 7, 2023
1 parent 900b1a3 commit 91f40f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion rizin
Submodule rizin updated 269 files
23 changes: 13 additions & 10 deletions src/core/Cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 91f40f2

Please sign in to comment.