HearthSim / UnityPack

Python deserialization library for Unity3D Asset format
https://hearthsim.info/
MIT License
720 stars 153 forks source link

Set base_path to directory of bundle file #90

Open mildsunrise opened 4 years ago

mildsunrise commented 4 years ago

(See #74) Currently, something like

unityextract --all extracted/data.unity3d

will fail with KeyError: "No such asset: 'sharedassets0.resource'", while

cd extracted
unityextract --all data.unity3d

will work. This patch sets base_path to the same directory where the loaded Unity3D file is (by default), and mentions that Unity3D files can reference external files (for people who didn't know, like me).