K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets
MIT License
771 stars 114 forks source link

Fix random ResourceReader file loading #190

Closed RealSupremium closed 1 year ago

RealSupremium commented 1 year ago

You may not believe it (or you probably did already), but possible_names was actually a dictionary type before. The problem with that is you get these random numbers as keys, and the items inside go out of order.

image

K0lb3 commented 1 year ago

It doesn't create a dict but a set. The idea behind it is to prevent duplicates, which used to be relevant before using .lowercase for the lookup. Now it's indeed not necessary to use a set anymore and a list would do, indeed.