We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource files are currently sorted by original names. They should be sorted by deobfuscated name.
I changed in jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java:
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
private JResource getHierarchyResources(List<ResourceFile> resources) { JResource root = new JResource(null, NLS.str("tree.resources_title"), JResType.ROOT); String splitPathStr = Pattern.quote(File.separator); for (ResourceFile rf : resources) { String rfName; if (rf.getZipRef() != null) { rfName = rf.getDeobfName(); } else { rfName = new File(rf.getDeobfName()).getName(); } String[] parts = new File(rfName).getPath().split(splitPathStr); JResource curRf = root; int count = parts.length; for (int i = 0; i < count; i++) { String name = parts[i]; JResource subRF = getResourceByName(curRf, name); if (subRF == null) { if (i != count - 1) { subRF = new JResource(null, name, JResType.DIR); } else { subRF = new JResource(rf, rf.getDeobfName(), name, JResType.FILE); //here } curRf.getFiles().add(subRF); } curRf = subRF; } } root.update(); return root; }
The text was updated successfully, but these errors were encountered:
@LongNghia thanks! Looks like this is a correct fix. Do you want to make a PR to get some credit? 🙂
Sorry, something went wrong.
@LongNghia thanks! Looks like this is a correct fix. Do you want to make a PR to get some credit? slightly_smiling_face
I would love to! Thank you 😅️
fix(gui): sort resources by deobfuscated name (#1595)(PR #1598)
3ca1357
Co-authored-by: /paul-nguyen-goldenowl <paul.nguyen.goldenowl@gmail.com>
Successfully merging a pull request may close this issue.
Resource files are currently sorted by original names. They should be sorted by deobfuscated name.
I changed in
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
:The text was updated successfully, but these errors were encountered: