You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split file can't be loaded in the apk or zip. #397
Bug
When we load a ZIP or APK file, The split file can't be loaded properly.Because it find file in the filesystem instead of the zip file with the path of zip.
Code
In the UnityPy/environment.py
defload_assets(self, assets: List[str], open_f: Callable[[str], BinaryIO]):
""" Load all assets from a list of files via the given open_f function. Parameters ---------- assets : List[str] List of files to load. open_f : Callable[[str], io.IOBase] Function to open the files. The function takes a file path and returns an io.IOBase object. """split_files= []
forpathinassets:
splitMatch=reSplit.match(path)
ifsplitMatch:
basepath, _basename=splitMatch.groups()
ifbasepathinsplit_files:
continuesplit_files.append(basepath)
data=self._load_split_file(basepath) # should pass the open_f!path=basepathelse:
data=open_f(path)
self.load_file(data, name=path)
Activity
fix K0lb3#397
fix K0lb3#397