Skip to content

Commit 2e510ea

Browse files
committed
TypeTreeGenerator - only append .dll if not ending with .dll
fixes #314
1 parent a542208 commit 2e510ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UnityPy/helpers/TypeTreeGenerator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def get_nodes_up(self, assembly: str, fullname: str) -> TypeTreeNode:
5252
if root is not None:
5353
return root
5454

55-
base_nodes = self.get_nodes(f"{assembly}.dll", fullname)
55+
if not assembly.endswith(".dll"):
56+
assembly = f"{assembly}.dll"
57+
base_nodes = self.get_nodes(assembly, fullname)
5658

5759
base_root = base_nodes[0]
5860
root = TypeTreeNode(

0 commit comments

Comments
 (0)