Skip to content

Commit 0a381c9

Browse files
committed
fix(TypeTreeGenerator) - only try to load .dll files for local_dll_folder
1 parent 7b887a0 commit 0a381c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UnityPy/helpers/TypeTreeGenerator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def load_local_game(self, root_dir: str):
3838

3939
def load_local_dll_folder(self, dll_dir: str):
4040
for f in os.listdir(dll_dir):
41+
if not f.endswith(".dll"):
42+
continue
4143
fp = os.path.join(dll_dir, f)
4244
with open(fp, "rb") as f:
4345
data = f.read()

0 commit comments

Comments
 (0)