K0lb3 / UnityPy

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

Fix save_fs flag confusion #123

Closed astiob closed 2 years ago

astiob commented 2 years ago

See commit messages: the argument naming is opposite from field naming, causing confusion and ruining save("original"). Also, save_fs always writes DirectoryInfo but doesn’t enforce the corresponding flag, making it easy to create bundles that Unity can’t load. This PR renames the arguments and adds a check that informs the user the flag is required.